e2nIEE / pandapower

Convenient Power System Modelling and Analysis based on PYPOWER and pandas
https://www.pandapower.org
Other
881 stars 484 forks source link

Temperature without TDPF ignores reference_temperature_degree_celsius #2327

Open rbolgaryn opened 4 months ago

rbolgaryn commented 4 months ago

Feature Checklist

Issue

In build_branch.py line 1061:

delta_t_degree_celsius = net[element].temperature_degree_celsius.values.astype(np.float64) - 20

should be:

if "reference_temperature_degree_celsius" in net[element].columns:
    ref_t = net[element].reference_temperature_degree_celsius.astype(np.float64)
else:
    ref_t = 20.

delta_t_degree_celsius = net[element].temperature_degree_celsius.values.astype(np.float64) - ref_t

Label

vogt31337 commented 1 day ago

@jwiemer112 ?