ecopipeline 0.7.0__py3-none-any.whl → 0.7.1__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/load/load.py +1 -1
- ecopipeline/transform/transform.py +2 -2
- {ecopipeline-0.7.0.dist-info → ecopipeline-0.7.1.dist-info}/METADATA +1 -1
- {ecopipeline-0.7.0.dist-info → ecopipeline-0.7.1.dist-info}/RECORD +7 -7
- {ecopipeline-0.7.0.dist-info → ecopipeline-0.7.1.dist-info}/WHEEL +1 -1
- {ecopipeline-0.7.0.dist-info → ecopipeline-0.7.1.dist-info}/licenses/LICENSE +0 -0
- {ecopipeline-0.7.0.dist-info → ecopipeline-0.7.1.dist-info}/top_level.txt +0 -0
ecopipeline/load/load.py
CHANGED
|
@@ -315,7 +315,7 @@ def load_event_table(config : ConfigManager, event_df: pd.DataFrame, site_name :
|
|
|
315
315
|
site_name = config.get_site_name()
|
|
316
316
|
column_names = f"start_time_pt,site_name"
|
|
317
317
|
column_types = ["datetime","varchar(25)","datetime",
|
|
318
|
-
"ENUM('
|
|
318
|
+
"ENUM('MISC_EVENT','DATA_LOSS','DATA_LOSS_COP','SITE_VISIT','SYSTEM_MAINTENANCE','EQUIPMENT_MALFUNCTION','PARTIAL_OCCUPANCY','INSTALLATION_ERROR','ALARM','MV_COMMISSIONED','PLANT_COMMISSIONED','INSTALLATION_ERROR_COP','SOO_PERIOD','SOO_PERIOD_COP','SYSTEM_TESTING')",
|
|
319
319
|
"varchar(200)"]
|
|
320
320
|
column_list = ['end_time_pt','event_type', 'event_detail']
|
|
321
321
|
if not set(column_list).issubset(event_df.columns):
|
|
@@ -717,7 +717,7 @@ def flag_dhw_outage(df: pd.DataFrame, daily_df : pd.DataFrame, dhw_outlet_column
|
|
|
717
717
|
Returns
|
|
718
718
|
-------
|
|
719
719
|
event_df : pd.DataFrame
|
|
720
|
-
Dataframe with '
|
|
720
|
+
Dataframe with 'ALARM' events on the days in which there was a DHW Outage.
|
|
721
721
|
"""
|
|
722
722
|
# TODO edge case for outage that spans over a day
|
|
723
723
|
events = {
|
|
@@ -739,7 +739,7 @@ def flag_dhw_outage(df: pd.DataFrame, daily_df : pd.DataFrame, dhw_outlet_column
|
|
|
739
739
|
adjusted_time = first_true_index - pd.Timedelta(minutes=consecutive_minutes-1)
|
|
740
740
|
events['start_time_pt'].append(day)
|
|
741
741
|
events['end_time_pt'].append(next_day - pd.Timedelta(minutes=1))
|
|
742
|
-
events['event_type'].append("
|
|
742
|
+
events['event_type'].append("ALARM")
|
|
743
743
|
events['event_detail'].append(f"Hot Water Outage Occured (first one starting at {adjusted_time.strftime('%H:%M')})")
|
|
744
744
|
event_df = pd.DataFrame(events)
|
|
745
745
|
event_df.set_index('start_time_pt', inplace=True)
|
|
@@ -2,16 +2,16 @@ ecopipeline/__init__.py,sha256=vCRzwd781ciCSXMP1ycM_BXAqxj3KVaNKIjsLOPcbwc,171
|
|
|
2
2
|
ecopipeline/extract/__init__.py,sha256=3u_CUMdCguVewU3kN8x6xhVNyo1-p-gwTrhjOh7Psqg,645
|
|
3
3
|
ecopipeline/extract/extract.py,sha256=heWcWTeRVTRITh_1sHVnkaKOOi5PwUOEVIi4k5tw2Z8,43384
|
|
4
4
|
ecopipeline/load/__init__.py,sha256=NLa_efQJZ8aP-J0Y5xx9DP7mtfRH9jY6Jz1ZMZN_BAA,292
|
|
5
|
-
ecopipeline/load/load.py,sha256=
|
|
5
|
+
ecopipeline/load/load.py,sha256=eNps857QRf0DZw_s90ShYbPMAyfOwbQJJfdKqYl7g-Y,22469
|
|
6
6
|
ecopipeline/transform/__init__.py,sha256=hYb4F64fXdXtjBSYCqv6gLFBwKZjjnl0z7s291pFE98,2505
|
|
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=l1jw6uQ9Bqcb8tCydpxO3WEE5t_B3CKxfhohrlwCiXA,48944
|
|
10
10
|
ecopipeline/utils/ConfigManager.py,sha256=E7e2RC2FveigjREMfeaiFu9fNQ8_b0xlWDfLCywS92k,10088
|
|
11
11
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
12
12
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
13
|
-
ecopipeline-0.7.
|
|
14
|
-
ecopipeline-0.7.
|
|
15
|
-
ecopipeline-0.7.
|
|
16
|
-
ecopipeline-0.7.
|
|
17
|
-
ecopipeline-0.7.
|
|
13
|
+
ecopipeline-0.7.1.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
ecopipeline-0.7.1.dist-info/METADATA,sha256=Jr0oFXTGHK2XGj0Nx6fnmp3NIba-Znjhxf9TinY1Sx4,2329
|
|
15
|
+
ecopipeline-0.7.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
16
|
+
ecopipeline-0.7.1.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
17
|
+
ecopipeline-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|