ecopipeline 0.6.7__tar.gz → 0.6.9__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.
- {ecopipeline-0.6.7/src/ecopipeline.egg-info → ecopipeline-0.6.9}/PKG-INFO +3 -2
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/setup.cfg +1 -1
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/transform/__init__.py +2 -2
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/transform/transform.py +47 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9/src/ecopipeline.egg-info}/PKG-INFO +3 -2
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/LICENSE +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/README.md +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/pyproject.toml +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/setup.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/load/load.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.6.7 → ecopipeline-0.6.9}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ecopipeline
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
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.
|
|
3
|
+
version = 0.6.9
|
|
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"]
|
|
@@ -138,6 +138,9 @@ def avg_duplicate_times(df: pd.DataFrame, timezone : str) -> pd.DataFrame:
|
|
|
138
138
|
Pandas dataframe with all duplicate timestamps compressed into one, averegaing data values
|
|
139
139
|
"""
|
|
140
140
|
df.index = pd.DatetimeIndex(df.index).tz_localize(None)
|
|
141
|
+
# get rid of time stamp 0 values
|
|
142
|
+
if df.index.min() < pd.Timestamp('2000-01-01'):
|
|
143
|
+
df = df[df.index > pd.Timestamp('2000-01-01')]
|
|
141
144
|
|
|
142
145
|
# Get columns with non-numeric values
|
|
143
146
|
non_numeric_cols = df.select_dtypes(exclude='number').columns
|
|
@@ -994,3 +997,47 @@ def join_to_daily(daily_data: pd.DataFrame, cop_data: pd.DataFrame) -> pd.DataFr
|
|
|
994
997
|
"""
|
|
995
998
|
out_df = daily_data.join(cop_data)
|
|
996
999
|
return out_df
|
|
1000
|
+
|
|
1001
|
+
def apply_equipment_cop_derate(df: pd.DataFrame, equip_cop_col: str, r_val : int = 16):
|
|
1002
|
+
"""
|
|
1003
|
+
Function derates equipment COP based on R value
|
|
1004
|
+
R12 - R16 : 12 %
|
|
1005
|
+
R16 - R20 : 10%
|
|
1006
|
+
R20 - R24 : 8%
|
|
1007
|
+
R24 - R28 : 6%
|
|
1008
|
+
R28 - R32 : 4%
|
|
1009
|
+
> R32 : 2%
|
|
1010
|
+
|
|
1011
|
+
Parameters
|
|
1012
|
+
----------
|
|
1013
|
+
df : pd.DataFrame
|
|
1014
|
+
dataframe
|
|
1015
|
+
equip_cop_col : str
|
|
1016
|
+
name of COP column to derate
|
|
1017
|
+
r_val : int
|
|
1018
|
+
R value, defaults to 16
|
|
1019
|
+
|
|
1020
|
+
Returns
|
|
1021
|
+
-------
|
|
1022
|
+
pd.DataFrame
|
|
1023
|
+
df with equip_cop_col derated
|
|
1024
|
+
"""
|
|
1025
|
+
derate = 1 # R12-R16
|
|
1026
|
+
if r_val >= 12:
|
|
1027
|
+
if r_val < 16:
|
|
1028
|
+
derate = 0.88
|
|
1029
|
+
elif r_val < 20:
|
|
1030
|
+
derate = 0.9
|
|
1031
|
+
elif r_val < 24:
|
|
1032
|
+
derate = .92
|
|
1033
|
+
elif r_val < 28:
|
|
1034
|
+
derate = .94
|
|
1035
|
+
elif r_val < 32:
|
|
1036
|
+
derate = .96
|
|
1037
|
+
else:
|
|
1038
|
+
derate = .98
|
|
1039
|
+
else:
|
|
1040
|
+
raise Exception("R value for Equipment COP derate must be at least 12")
|
|
1041
|
+
|
|
1042
|
+
df[equip_cop_col] = df[equip_cop_col] * derate
|
|
1043
|
+
return df
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ecopipeline
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|