Skip to content

Code duplication in build_osm_network and clean_osm_network? #400

Answered by ekatef
pz-max asked this question in Q&A
Discussion options

You must be logged in to vote

@pz-max, thank you for rising this question!

My feeling is that it would be a very good idea to merge two versions of add_line_endings_tosubstations( ). Actually, when modifying them I was considering to move them into helpers script but was concerned if an application area of the function is not too narrow for the helpers.

As for create_bus_df_from_lines( ), was it probably an initial version of add_line_endings_tosubstations? :) If that's the case and create_bus_df_from_lines( ) is not needed anymore, could we probably remove it and use its name for add_line_endings_tosubstations( )? Because the main effect of the add_line_endings_tosubstations( ) is exactly creation the buses from the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pz-max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants