File tree 1 file changed +5
-1
lines changed
prereise/gather/griddata/hifld/data_process
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 18
18
add_interconnects_by_connected_components ,
19
19
get_mst_edges ,
20
20
)
21
+ from prereise .gather .griddata .transmission import const as transmission_const
21
22
from prereise .gather .griddata .transmission .geometry import (
22
23
Conductor ,
23
24
ConductorBundle ,
@@ -910,7 +911,10 @@ def build_transmission(method="line2sub", **kwargs):
910
911
first_new_id = ac_lines .index .max () + 1
911
912
transformers .index = pd .RangeIndex (first_new_id , first_new_id + len (transformers ))
912
913
ac_lines ["type" ] = "Line"
913
- ac_lines ["length" ] = ac_lines .apply (calculate_branch_mileage , axis = 1 ) * 1.6093 # km
914
+ ac_lines ["length" ] = (
915
+ ac_lines .apply (calculate_branch_mileage , axis = 1 )
916
+ * transmission_const .kilometers_per_mile
917
+ )
914
918
branch = pd .concat ([ac_lines , transformers ])
915
919
add_impedance_and_rating (branch , bus ["baseKV" ], const .line_design_assumptions )
916
920
You can’t perform that action at this time.
0 commit comments