ecopipeline 0.6.2__py3-none-any.whl → 0.6.4__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.
@@ -703,7 +703,7 @@ def flag_dhw_outage(df: pd.DataFrame, daily_df : pd.DataFrame, dhw_outlet_column
703
703
  first_true_index = consecutive_condition.idxmax()
704
704
  adjusted_time = first_true_index - pd.Timedelta(minutes=consecutive_minutes-1)
705
705
  events['start_time_pt'].append(day)
706
- events['end_time_pt'].append(day)
706
+ events['end_time_pt'].append(next_day - pd.Timedelta(minutes=1))
707
707
  events['event_type'].append("HW_OUTAGE")
708
708
  events['event_detail'].append(f"Hot Water Outage Occured (first one starting at {adjusted_time.strftime('%H:%M')})")
709
709
  event_df = pd.DataFrame(events)
@@ -839,8 +839,8 @@ def convert_time_zone(df: pd.DataFrame, tz_convert_from: str = 'UTC', tz_convert
839
839
  pd.DataFrame:
840
840
  The dataframe with it's index converted to the appropriate timezone.
841
841
  """
842
- time_UTC = df.index.tz_localize('UTC')
843
- time_PST = time_UTC.tz_convert('America/Los_Angeles')
842
+ time_UTC = df.index.tz_localize(tz_convert_from)
843
+ time_PST = time_UTC.tz_convert(tz_convert_to)
844
844
  df['time_pt'] = time_PST.tz_localize(None)
845
845
  df.set_index('time_pt', inplace=True)
846
846
  return df
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ecopipeline
3
- Version: 0.6.2
3
+ Version: 0.6.4
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)
@@ -6,12 +6,12 @@ ecopipeline/load/load.py,sha256=YfCuzsJYFNZqwR58GeF55-gRI7LpOeaK_DXYHg_0frU,2141
6
6
  ecopipeline/transform/__init__.py,sha256=DcIJfkRs4OmZzDeEfW_OiOIXNqN6CUl1_lW0SS7-eN8,2280
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=uyBIXKCXUCT6zVnZyQohripGAzmY1yV9T1GxsXOtS-s,43390
9
+ ecopipeline/transform/transform.py,sha256=pPDZjS72Cmuq3Dtoo7R53l0-7ngIYOOZk4Rkj12XUYg,43423
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.2.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- ecopipeline-0.6.2.dist-info/METADATA,sha256=bjYX_gnfOZFDTS6mY71uJrBzCMkdtks6o1ZZHgVniys,2307
15
- ecopipeline-0.6.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
- ecopipeline-0.6.2.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
17
- ecopipeline-0.6.2.dist-info/RECORD,,
13
+ ecopipeline-0.6.4.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ ecopipeline-0.6.4.dist-info/METADATA,sha256=0yjQgDrZBGbrprCBq4VepM6oeNH_1fk1INJY7Jn1LgQ,2307
15
+ ecopipeline-0.6.4.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
16
+ ecopipeline-0.6.4.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
17
+ ecopipeline-0.6.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5