ecopipeline 0.6.0__tar.gz → 0.6.3__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.0/src/ecopipeline.egg-info → ecopipeline-0.6.3}/PKG-INFO +1 -1
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/setup.cfg +1 -1
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/load/load.py +2 -2
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/transform.py +2 -2
- {ecopipeline-0.6.0 → ecopipeline-0.6.3/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/LICENSE +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/README.md +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/pyproject.toml +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/setup.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/__init__.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.6.
|
|
3
|
+
version = 0.6.3
|
|
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
|
|
@@ -207,7 +207,7 @@ def load_overwrite_database(config : ConfigManager, dataframe: pd.DataFrame, con
|
|
|
207
207
|
else:
|
|
208
208
|
|
|
209
209
|
print(f"Attempting to write data for {dataframe.index[0]} to {dataframe.index[-1]} into {table_name}")
|
|
210
|
-
if auto_log_data_loss and dataframe.index[-1] < datetime.now() - timedelta(days=
|
|
210
|
+
if auto_log_data_loss and dataframe.index[-1] < datetime.now() - timedelta(days=3):
|
|
211
211
|
report_data_loss(config)
|
|
212
212
|
|
|
213
213
|
# Get string of all column names for sql insert
|
|
@@ -416,7 +416,7 @@ def report_data_loss(config : ConfigManager, site_name : str = None):
|
|
|
416
416
|
table_name = "site_events"
|
|
417
417
|
if site_name is None:
|
|
418
418
|
site_name = config.get_site_name()
|
|
419
|
-
error_string = "Error
|
|
419
|
+
error_string = "Error processing data. Please check logs to resolve."
|
|
420
420
|
|
|
421
421
|
print(f"logging DATA_LOSS into {table_name}")
|
|
422
422
|
|
|
@@ -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(
|
|
843
|
-
time_PST = time_UTC.tz_convert(
|
|
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
|
|
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
|