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.
- {ecopipeline-0.11.5/src/ecopipeline.egg-info → ecopipeline-0.11.6}/PKG-INFO +1 -1
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/setup.cfg +1 -1
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/event_tracking/event_tracking.py +4 -1
- {ecopipeline-0.11.5 → ecopipeline-0.11.6/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/LICENSE +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/README.md +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/pyproject.toml +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/setup.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/event_tracking/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/load/load.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/transform/transform.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/NOAADataDownloader.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.11.5 → ecopipeline-0.11.6}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.11.
|
|
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)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|