NREL / disco

DISCO
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Upgrades module produces SettingWithCopyWarning #115

Closed daniel-thom closed 2 years ago

daniel-thom commented 2 years ago

Running the upgrades module produces this warning message:

disco/extensions/upgrade_simulation/upgrades/thermal_upgrade_functions.py:271: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  overloaded_loading_df["required_design_amp"] = overloaded_loading_df["max_amp_loading"] / xfmr_design_pu