Closed rouille closed 1 year ago
If I recall correctly, it took a specific version of the network and some corner cases were resolved manually at the early stage. Later we automated the process which should no longer a problem.
If I recall correctly, it took a specific version of the network and some corner cases were resolved manually at the early stage. Later we automated the process which should no longer a problem.
I will refactor the function in a follow up PR then.
Pull Request doc
Purpose
What is the larger goal of this change?
What the code is doing
Pass a single argument, the path to the folder containing the network data, to the
get_bus_pos
function. Some code responsible for reading files was refactored.Testing
An error was thrown when generating the documentation locally with
sphinx
. With the change, it is fixed.Where to look
The
get_bus_pos
located in theprereise.gather.flexibilitydata.doe.bus_data
module takes one argument, the path to a folder containing the sub.csv and bus2sub.csv file. Thebus_example
script located inprereise.gather.flexibilitydata.doe.examples.bus_example
module call the function with two arguments, the path to a folder and a filename.@BainanXia and @lanesmith, do you know why the
get_bus_pos
reads network data instead of using aGrid
object? AGrid
object could be the argument of theget_bus_pos
function.Usage Example/Visuals
N/A
Time estimate
5min