ecopipeline 0.6.7__tar.gz → 0.6.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {ecopipeline-0.6.7/src/ecopipeline.egg-info → ecopipeline-0.6.8}/PKG-INFO +3 -2
  2. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/setup.cfg +1 -1
  3. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/transform/__init__.py +2 -2
  4. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/transform/transform.py +44 -0
  5. {ecopipeline-0.6.7 → ecopipeline-0.6.8/src/ecopipeline.egg-info}/PKG-INFO +3 -2
  6. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/LICENSE +0 -0
  7. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/README.md +0 -0
  8. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/pyproject.toml +0 -0
  9. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/setup.py +0 -0
  10. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/__init__.py +0 -0
  11. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/extract/__init__.py +0 -0
  12. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/extract/extract.py +0 -0
  13. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/load/__init__.py +0 -0
  14. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/load/load.py +0 -0
  15. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/transform/bayview.py +0 -0
  16. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/transform/lbnl.py +0 -0
  17. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/utils/ConfigManager.py +0 -0
  18. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/utils/__init__.py +0 -0
  19. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline/utils/unit_convert.py +0 -0
  20. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
  21. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
  22. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline.egg-info/requires.txt +0 -0
  23. {ecopipeline-0.6.7 → ecopipeline-0.6.8}/src/ecopipeline.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: ecopipeline
3
- Version: 0.6.7
3
+ Version: 0.6.8
4
4
  Summary: Contains functions for use in Ecotope Datapipelines
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
@@ -13,6 +13,7 @@ Requires-Dist: numpy>=1.24.1
13
13
  Requires-Dist: mysql-connector-python>=8.0.32
14
14
  Requires-Dist: scikit-learn>=1.2.1
15
15
  Requires-Dist: statsmodels
16
+ Dynamic: license-file
16
17
 
17
18
  # DataPipelinePackage
18
19
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ecopipeline
3
- version = 0.6.7
3
+ version = 0.6.8
4
4
  authors = ["Carlos Bello, <bellocarlos@seattleu.edu>, Emil Fahrig <fahrigemil@seattleu.edu>, Casey Mang <cmang@seattleu.edu>, Julian Harris <harrisjulian@seattleu.edu>, Roger Tram <rtram@seattleu.edu>, Nolan Price <nolan@ecotope.com>"]
5
5
  description = Contains functions for use in Ecotope Datapipelines
6
6
  long_description = file: README.md
@@ -1,4 +1,4 @@
1
- from .transform import rename_sensors, avg_duplicate_times, remove_outliers, ffill_missing, nullify_erroneous, sensor_adjustment, round_time, aggregate_df, join_to_hourly, concat_last_row, join_to_daily, cop_method_1, cop_method_2, create_summary_tables, remove_partial_days,convert_c_to_f,convert_l_to_g, convert_on_off_col_to_bool, flag_dhw_outage,generate_event_log_df,convert_time_zone, shift_accumulative_columns,heat_output_calc, add_relative_humidity
1
+ from .transform import rename_sensors, avg_duplicate_times, remove_outliers, ffill_missing, nullify_erroneous, sensor_adjustment, round_time, aggregate_df, join_to_hourly, concat_last_row, join_to_daily, cop_method_1, cop_method_2, create_summary_tables, remove_partial_days,convert_c_to_f,convert_l_to_g, convert_on_off_col_to_bool, flag_dhw_outage,generate_event_log_df,convert_time_zone, shift_accumulative_columns,heat_output_calc, add_relative_humidity, apply_equipment_cop_derate
2
2
  from .lbnl import nclarity_filter_new, site_specific, condensate_calculations, gas_valve_diff, gather_outdoor_conditions, aqsuite_prep_time, nclarity_csv_to_df, _add_date, add_local_time, aqsuite_filter_new, get_refrig_charge, elev_correction, change_ID_to_HVAC, get_hvac_state, get_cop_values, get_cfm_values, replace_humidity, create_fan_curves, lbnl_temperature_conversions, lbnl_pressure_conversions, lbnl_sat_calculations, get_site_cfm_info, get_site_info, merge_indexlike_rows
3
3
  from .bayview import calculate_cop_values, aggregate_values, get_energy_by_min, verify_power_energy, get_temp_zones120, get_storage_gals120
4
4
  __all__ = ["rename_sensors", "avg_duplicate_times", "remove_outliers", "ffill_missing", "nullify_erroneous", "sensor_adjustment", "round_time", "aggregate_df", "join_to_hourly", "concat_last_row", "join_to_daily",
@@ -6,4 +6,4 @@ __all__ = ["rename_sensors", "avg_duplicate_times", "remove_outliers", "ffill_mi
6
6
  "nclarity_csv_to_df", "_add_date", "add_local_time", "aqsuite_filter_new", "get_refrig_charge", "elev_correction", "change_ID_to_HVAC", "get_hvac_state", "get_cop_values", "get_cfm_values", "replace_humidity",
7
7
  "create_fan_curves", "lbnl_temperature_conversions", "lbnl_pressure_conversions", "lbnl_sat_calculations", "get_site_cfm_info", "get_site_info", "merge_indexlike_rows", "calculate_cop_values", "aggregate_values",
8
8
  "get_energy_by_min", "verify_power_energy", "get_temp_zones120", "get_storage_gals120","convert_c_to_f","convert_l_to_g", "convert_on_off_col_to_bool", "flag_dhw_outage","generate_event_log_df","convert_time_zone",
9
- "shift_accumulative_columns","heat_output_calc", "add_relative_humidity"]
9
+ "shift_accumulative_columns","heat_output_calc", "add_relative_humidity","apply_equipment_cop_derate"]
@@ -994,3 +994,47 @@ def join_to_daily(daily_data: pd.DataFrame, cop_data: pd.DataFrame) -> pd.DataFr
994
994
  """
995
995
  out_df = daily_data.join(cop_data)
996
996
  return out_df
997
+
998
+ def apply_equipment_cop_derate(df: pd.DataFrame, equip_cop_col: str, r_val : int = 16):
999
+ """
1000
+ Function derates equipment COP based on R value
1001
+ R12 - R16 : 12 %
1002
+ R16 - R20 : 10%
1003
+ R20 - R24 : 8%
1004
+ R24 - R28 : 6%
1005
+ R28 - R32 : 4%
1006
+ > R32 : 2%
1007
+
1008
+ Parameters
1009
+ ----------
1010
+ df : pd.DataFrame
1011
+ dataframe
1012
+ equip_cop_col : str
1013
+ name of COP column to derate
1014
+ r_val : int
1015
+ R value, defaults to 16
1016
+
1017
+ Returns
1018
+ -------
1019
+ pd.DataFrame
1020
+ df with equip_cop_col derated
1021
+ """
1022
+ derate = 1 # R12-R16
1023
+ if r_val >= 12:
1024
+ if r_val < 16:
1025
+ derate = 0.88
1026
+ elif r_val < 20:
1027
+ derate = 0.9
1028
+ elif r_val < 24:
1029
+ derate = .92
1030
+ elif r_val < 28:
1031
+ derate = .94
1032
+ elif r_val < 32:
1033
+ derate = .96
1034
+ else:
1035
+ derate = .98
1036
+ else:
1037
+ raise Exception("R value for Equipment COP derate must be at least 12")
1038
+
1039
+ df[equip_cop_col] = df[equip_cop_col] * derate
1040
+ return df
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: ecopipeline
3
- Version: 0.6.7
3
+ Version: 0.6.8
4
4
  Summary: Contains functions for use in Ecotope Datapipelines
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
@@ -13,6 +13,7 @@ Requires-Dist: numpy>=1.24.1
13
13
  Requires-Dist: mysql-connector-python>=8.0.32
14
14
  Requires-Dist: scikit-learn>=1.2.1
15
15
  Requires-Dist: statsmodels
16
+ Dynamic: license-file
16
17
 
17
18
  # DataPipelinePackage
18
19
 
File without changes
File without changes
File without changes
File without changes