ecopipeline 0.11.5__tar.gz → 0.11.6__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 (26) hide show
  1. {ecopipeline-0.11.5/src/ecopipeline.egg-info → ecopipeline-0.11.6}/PKG-INFO +1 -1
  2. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/setup.cfg +1 -1
  3. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/event_tracking/event_tracking.py +4 -1
  4. {ecopipeline-0.11.5 → ecopipeline-0.11.6/src/ecopipeline.egg-info}/PKG-INFO +1 -1
  5. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/LICENSE +0 -0
  6. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/README.md +0 -0
  7. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/pyproject.toml +0 -0
  8. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/setup.py +0 -0
  9. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/__init__.py +0 -0
  10. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/event_tracking/__init__.py +0 -0
  11. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/extract/__init__.py +0 -0
  12. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/extract/extract.py +0 -0
  13. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/load/__init__.py +0 -0
  14. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/load/load.py +0 -0
  15. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/__init__.py +0 -0
  16. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/bayview.py +0 -0
  17. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/lbnl.py +0 -0
  18. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/transform.py +0 -0
  19. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/ConfigManager.py +0 -0
  20. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/NOAADataDownloader.py +0 -0
  21. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/__init__.py +0 -0
  22. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/unit_convert.py +0 -0
  23. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
  24. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
  25. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/requires.txt +0 -0
  26. {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecopipeline
3
- Version: 0.11.5
3
+ Version: 0.11.6
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.11.5
3
+ version = 0.11.6
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
@@ -78,7 +78,7 @@ def flag_abnormal_COP(daily_data: pd.DataFrame, config : ConfigManager, system:
78
78
  for bound_var, bounds in bounds_df.iterrows():
79
79
  if bound_var in cop_columns:
80
80
  for day, day_values in daily_data.iterrows():
81
- if day_values[bound_var] > bounds['high_alarm'] or day_values[bound_var] < bounds['low_alarm']:
81
+ if not day_values[bound_var] is None and (day_values[bound_var] > bounds['high_alarm'] or day_values[bound_var] < bounds['low_alarm']):
82
82
  alarm_str = f"Unexpected COP Value detected: {bounds['pretty_name']} = {round(day_values[bound_var],2)}"
83
83
  if day in alarms_dict:
84
84
  alarms_dict[day].append([bound_var, alarm_str])
@@ -135,6 +135,9 @@ def flag_boundary_alarms(df: pd.DataFrame, config : ConfigManager, default_fault
135
135
  pd.DataFrame:
136
136
  Pandas dataframe with alarm events
137
137
  """
138
+ if df.empty:
139
+ print("cannot flag boundary alarms. Dataframe is empty")
140
+ return pd.DataFrame()
138
141
  variable_names_path = config.get_var_names_path()
139
142
  try:
140
143
  bounds_df = pd.read_csv(variable_names_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecopipeline
3
- Version: 0.11.5
3
+ Version: 0.11.6
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