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.
Files changed (23) hide show
  1. {ecopipeline-0.6.0/src/ecopipeline.egg-info → ecopipeline-0.6.3}/PKG-INFO +1 -1
  2. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/setup.cfg +1 -1
  3. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/load/load.py +2 -2
  4. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/transform.py +2 -2
  5. {ecopipeline-0.6.0 → ecopipeline-0.6.3/src/ecopipeline.egg-info}/PKG-INFO +1 -1
  6. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/LICENSE +0 -0
  7. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/README.md +0 -0
  8. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/pyproject.toml +0 -0
  9. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/setup.py +0 -0
  10. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/__init__.py +0 -0
  11. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/extract/__init__.py +0 -0
  12. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/extract/extract.py +0 -0
  13. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/load/__init__.py +0 -0
  14. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/__init__.py +0 -0
  15. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/bayview.py +0 -0
  16. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/transform/lbnl.py +0 -0
  17. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/ConfigManager.py +0 -0
  18. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/__init__.py +0 -0
  19. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline/utils/unit_convert.py +0 -0
  20. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
  21. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
  22. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/requires.txt +0 -0
  23. {ecopipeline-0.6.0 → ecopipeline-0.6.3}/src/ecopipeline.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ecopipeline
3
- Version: 0.6.0
3
+ Version: 0.6.3
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)
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ecopipeline
3
- version = 0.6.0
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=2):
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 proccessing data. Please check logs to resolve."
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('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.0
3
+ Version: 0.6.3
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)
File without changes
File without changes
File without changes
File without changes