ecopipeline 0.6.6__py3-none-any.whl → 0.6.8__py3-none-any.whl
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/extract/extract.py +1 -1
- ecopipeline/transform/__init__.py +2 -2
- ecopipeline/transform/transform.py +44 -0
- {ecopipeline-0.6.6.dist-info → ecopipeline-0.6.8.dist-info}/METADATA +3 -2
- {ecopipeline-0.6.6.dist-info → ecopipeline-0.6.8.dist-info}/RECORD +8 -8
- {ecopipeline-0.6.6.dist-info → ecopipeline-0.6.8.dist-info}/WHEEL +1 -1
- {ecopipeline-0.6.6.dist-info → ecopipeline-0.6.8.dist-info/licenses}/LICENSE +0 -0
- {ecopipeline-0.6.6.dist-info → ecopipeline-0.6.8.dist-info}/top_level.txt +0 -0
ecopipeline/extract/extract.py
CHANGED
|
@@ -141,7 +141,7 @@ def extract_new(startTime: datetime, filenames: List[str], decihex = False, time
|
|
|
141
141
|
|
|
142
142
|
if decihex:
|
|
143
143
|
base_date = datetime(1970, 1, 1)
|
|
144
|
-
file_dates = [pd.Timestamp(base_date + timedelta(seconds = int(re.search(r'\.(.*?)_', filename).group(1), 16))) for filename in filenames] #convert decihex to dates, these are in utc
|
|
144
|
+
file_dates = [pd.Timestamp(base_date + timedelta(seconds = int(re.search(r'\.(.*?)_', filename.split("/")[-1]).group(1), 16))) for filename in filenames] #convert decihex to dates, these are in utc
|
|
145
145
|
if timeZone == None:
|
|
146
146
|
file_dates_local = [file_date.tz_localize('UTC').tz_localize(None) for file_date in file_dates] #convert utc
|
|
147
147
|
else:
|
|
@@ -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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ecopipeline
|
|
3
|
-
Version: 0.6.
|
|
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,17 +1,17 @@
|
|
|
1
1
|
ecopipeline/__init__.py,sha256=vCRzwd781ciCSXMP1ycM_BXAqxj3KVaNKIjsLOPcbwc,171
|
|
2
2
|
ecopipeline/extract/__init__.py,sha256=3u_CUMdCguVewU3kN8x6xhVNyo1-p-gwTrhjOh7Psqg,645
|
|
3
|
-
ecopipeline/extract/extract.py,sha256=
|
|
3
|
+
ecopipeline/extract/extract.py,sha256=heWcWTeRVTRITh_1sHVnkaKOOi5PwUOEVIi4k5tw2Z8,43384
|
|
4
4
|
ecopipeline/load/__init__.py,sha256=oDAVF8AhK_qugqegjW7jK16p-nb9QzKhiNQOkEBniKM,235
|
|
5
5
|
ecopipeline/load/load.py,sha256=X7JIakIxyjzZbLuUjJ991kcQpyK4cFEZ0Lk36eXBEfI,21506
|
|
6
|
-
ecopipeline/transform/__init__.py,sha256=
|
|
6
|
+
ecopipeline/transform/__init__.py,sha256=YIE20XukPx-WiJ575PRgSPaCTtgTCiMqmFXPoE_yR1M,2337
|
|
7
7
|
ecopipeline/transform/bayview.py,sha256=TP24dnTsUD95X-f6732egPZKjepFLJgDm9ImGr-fppY,17899
|
|
8
8
|
ecopipeline/transform/lbnl.py,sha256=EQ54G4rJXaZ7pwVusKcdK2KBehSdCsNo2ybphtMGs7o,33400
|
|
9
|
-
ecopipeline/transform/transform.py,sha256=
|
|
9
|
+
ecopipeline/transform/transform.py,sha256=UOfrZj-un6gQuDK3s7EqflHXMAcmSJ-Ba_47I4k2jC4,44754
|
|
10
10
|
ecopipeline/utils/ConfigManager.py,sha256=t4sfTjGO0g5P50XBQqGVFWaXfAlW1GMDh1DLoBuFGks,9826
|
|
11
11
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
12
12
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
13
|
-
ecopipeline-0.6.
|
|
14
|
-
ecopipeline-0.6.
|
|
15
|
-
ecopipeline-0.6.
|
|
16
|
-
ecopipeline-0.6.
|
|
17
|
-
ecopipeline-0.6.
|
|
13
|
+
ecopipeline-0.6.8.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
ecopipeline-0.6.8.dist-info/METADATA,sha256=zzSea7K1MtnertK2FGbwBOun0_fbHBmwpij_EMDigNU,2329
|
|
15
|
+
ecopipeline-0.6.8.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
16
|
+
ecopipeline-0.6.8.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
17
|
+
ecopipeline-0.6.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|