ecopipeline 0.11.8__tar.gz → 1.0.0__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-1.0.0/MANIFEST.in +2 -0
- {ecopipeline-0.11.8/src/ecopipeline.egg-info → ecopipeline-1.0.0}/PKG-INFO +1 -1
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/setup.cfg +1 -1
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/transform/__init__.py +2 -2
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/transform/transform.py +35 -8
- ecopipeline-1.0.0/src/ecopipeline/utils/pkls/tasseron_resistance_to_temp_3.pkl +0 -0
- ecopipeline-1.0.0/src/ecopipeline/utils/pkls/tasseron_temp_to_resistance_2.pkl +0 -0
- ecopipeline-1.0.0/src/ecopipeline/utils/pkls/veris_resistance_to_temp_3.pkl +0 -0
- ecopipeline-1.0.0/src/ecopipeline/utils/pkls/veris_temp_to_resistance_2.pkl +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline.egg-info/SOURCES.txt +6 -1
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/LICENSE +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/README.md +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/pyproject.toml +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/setup.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/event_tracking/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/event_tracking/event_tracking.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/load/load.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/utils/NOAADataDownloader.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/utils/pkls/__init__.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.11.8 → ecopipeline-1.0.0}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.
|
|
3
|
+
version = 1.0.0
|
|
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
|
|
@@ -2,7 +2,7 @@ from .transform import rename_sensors, avg_duplicate_times, remove_outliers, ffi
|
|
|
2
2
|
aggregate_df, join_to_hourly, concat_last_row, join_to_daily, cop_method_1, cop_method_2, create_summary_tables, remove_partial_days, \
|
|
3
3
|
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, \
|
|
4
4
|
heat_output_calc, add_relative_humidity, apply_equipment_cop_derate, create_data_statistics_df, delete_erroneous_from_time_pt,column_name_change, \
|
|
5
|
-
process_ls_signal, convert_temp_resistance_type
|
|
5
|
+
process_ls_signal, convert_temp_resistance_type, estimate_power
|
|
6
6
|
from .lbnl import nclarity_filter_new, site_specific, condensate_calculations, gas_valve_diff, gather_outdoor_conditions, aqsuite_prep_time, \
|
|
7
7
|
nclarity_csv_to_df, _add_date, add_local_time, aqsuite_filter_new, get_refrig_charge, elev_correction, change_ID_to_HVAC, get_hvac_state, \
|
|
8
8
|
get_cop_values, get_cfm_values, replace_humidity, create_fan_curves, lbnl_temperature_conversions, lbnl_pressure_conversions, \
|
|
@@ -14,4 +14,4 @@ __all__ = ["rename_sensors", "avg_duplicate_times", "remove_outliers", "ffill_mi
|
|
|
14
14
|
"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",
|
|
15
15
|
"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",
|
|
16
16
|
"shift_accumulative_columns","heat_output_calc", "add_relative_humidity","apply_equipment_cop_derate","create_data_statistics_df",
|
|
17
|
-
"delete_erroneous_from_time_pt","column_name_change","process_ls_signal", "convert_temp_resistance_type"]
|
|
17
|
+
"delete_erroneous_from_time_pt","column_name_change","process_ls_signal", "convert_temp_resistance_type", "estimate_power"]
|
|
@@ -311,17 +311,16 @@ def convert_temp_resistance_type(df : pd.DataFrame, column_name : str, sensor_mo
|
|
|
311
311
|
|
|
312
312
|
Parameters:
|
|
313
313
|
-----------
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
df: pd.DataFrame
|
|
315
|
+
Timestamp indexed Pandas dataframe of minute by minute values
|
|
316
|
+
column_name : str
|
|
317
|
+
Name of column with resistance conversion type 2 data
|
|
318
|
+
sensor_model : str
|
|
319
|
+
possible strings: veris, tasseron
|
|
320
320
|
|
|
321
321
|
Returns:
|
|
322
322
|
--------
|
|
323
|
-
|
|
324
|
-
Resistance in Ohms
|
|
323
|
+
df: pd.DataFrame
|
|
325
324
|
"""
|
|
326
325
|
model_path_t_to_r = '../utils/pkls/'
|
|
327
326
|
model_path_r_to_t = '../utils/pkls/'
|
|
@@ -343,6 +342,34 @@ def convert_temp_resistance_type(df : pd.DataFrame, column_name : str, sensor_mo
|
|
|
343
342
|
df.drop(columns='resistance')
|
|
344
343
|
return df
|
|
345
344
|
|
|
345
|
+
def estimate_power(df : pd.DataFrame, new_power_column : str, current_a_column : str, current_b_column : str, current_c_column : str,
|
|
346
|
+
assumed_voltage : float = 208, power_factor : float = 1):
|
|
347
|
+
"""
|
|
348
|
+
df: pd.DataFrame
|
|
349
|
+
Pandas dataframe with minute-to-minute data
|
|
350
|
+
new_power_column : str
|
|
351
|
+
The column name of the power varriable for the calculation. Units of the column should be kW
|
|
352
|
+
current_a_column : str
|
|
353
|
+
The column name of the Current A varriable for the calculation. Units of the column should be amps
|
|
354
|
+
current_b_column : str
|
|
355
|
+
The column name of the Current B varriable for the calculation. Units of the column should be amps
|
|
356
|
+
current_c_column : str
|
|
357
|
+
The column name of the Current C varriable for the calculation. Units of the column should be amps
|
|
358
|
+
assumed_voltage : float
|
|
359
|
+
The assumed voltage (default 208)
|
|
360
|
+
power_factor : float
|
|
361
|
+
The power factor (default 1)
|
|
362
|
+
|
|
363
|
+
Returns
|
|
364
|
+
-------
|
|
365
|
+
pd.DataFrame:
|
|
366
|
+
Pandas dataframe with new estimated power column of specified name.
|
|
367
|
+
"""
|
|
368
|
+
#average current * 208V * PF * sqrt(3)
|
|
369
|
+
df[new_power_column] = (df[current_a_column] + df[current_b_column] + df[current_c_column]) / 3 * assumed_voltage * power_factor * np.sqrt(3) / 1000
|
|
370
|
+
|
|
371
|
+
return df
|
|
372
|
+
|
|
346
373
|
def process_ls_signal(df: pd.DataFrame, hourly_df: pd.DataFrame, daily_df: pd.DataFrame, load_dict: dict = {1: "normal", 2: "loadUp", 3 : "shed"}, ls_column: str = 'ls',
|
|
347
374
|
drop_ls_from_df : bool = False):
|
|
348
375
|
"""
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
2
3
|
README.md
|
|
3
4
|
pyproject.toml
|
|
4
5
|
setup.cfg
|
|
@@ -23,4 +24,8 @@ src/ecopipeline/utils/ConfigManager.py
|
|
|
23
24
|
src/ecopipeline/utils/NOAADataDownloader.py
|
|
24
25
|
src/ecopipeline/utils/__init__.py
|
|
25
26
|
src/ecopipeline/utils/unit_convert.py
|
|
26
|
-
src/ecopipeline/utils/pkls/__init__.py
|
|
27
|
+
src/ecopipeline/utils/pkls/__init__.py
|
|
28
|
+
src/ecopipeline/utils/pkls/tasseron_resistance_to_temp_3.pkl
|
|
29
|
+
src/ecopipeline/utils/pkls/tasseron_temp_to_resistance_2.pkl
|
|
30
|
+
src/ecopipeline/utils/pkls/veris_resistance_to_temp_3.pkl
|
|
31
|
+
src/ecopipeline/utils/pkls/veris_temp_to_resistance_2.pkl
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|