-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some mistakes when loading my own flow txt data(ndexError: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)) #27
Comments
Thanks for your comment. |
can you please send the road file to us? |
About create your own flow.txt data, we will release a python script sooner for your convenience. Thanks for your comments. |
The road file is the roadnet_1x1.txt. |
Please use the roadnet_round2.txt for the second round (qualification phase), the roadnet_1x1.txt is a different road network that is used for previous stage. |
When I set the
flow_1x1.txt
only with the four lines data like what the image shows below:Then the except from the CBEngine.py happend:
/CBEngine/envs/CBEngine.py", line 168, in step self.eng.next_step() IndexError: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
The image road of the map is below:
The
1 2 1
just means the routes of the vehicle is from road 1 -->road 2 --> road 1And when I set the
flow_1x1.tx
only with the text image below:It can run without all mistake, just add the 2 to
1 2 1 2
that means the routes of the vehicle is from road 1 -->road 2 --> road 1-->road2What causes this except above?
And there is any suggestions or rules that I should obey when I want to generate my own flow data?
Bacause the mistake
/CBEngine/envs/CBEngine.py", line 168, in step self.eng.next_step() IndexError: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
also happen when I load my own generating flow_round2.txt data.
The text was updated successfully, but these errors were encountered: