Use Grid object instead of sub.csv and bus2sub.csv files to get position of buses in network
What the code is doing
The get_bus_pos function is refactored. It takes a Grid object instead of a path to a directory enclosing the CSV files. The same data frame enclosing the coordinates of the buses in the network is returned.
The prereise.gather.flexibilitydata.doe.bus_data module where the get_bus_pos function is defined and the prereise.gather.flexibilitydata.doe.examples.bus_example module where the function is called
Usage Example/Visuals
N/A
Time estimate
How long will it take for reviewers and observers to understand this code change?
Pull Request doc
Purpose
Use
Grid
object instead of sub.csv and bus2sub.csv files to get position of buses in networkWhat the code is doing
The
get_bus_pos
function is refactored. It takes aGrid
object instead of a path to a directory enclosing the CSV files. The same data frame enclosing the coordinates of the buses in the network is returned.Testing
Where to look
The
prereise.gather.flexibilitydata.doe.bus_data
module where theget_bus_pos
function is defined and theprereise.gather.flexibilitydata.doe.examples.bus_example
module where the function is calledUsage Example/Visuals
N/A
Time estimate
How long will it take for reviewers and observers to understand this code change?