ecopipeline 0.10.1__tar.gz → 0.10.2__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.10.1/src/ecopipeline.egg-info → ecopipeline-0.10.2}/PKG-INFO +1 -1
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/setup.cfg +1 -1
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/event_tracking/event_tracking.py +10 -9
- {ecopipeline-0.10.1 → ecopipeline-0.10.2/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/LICENSE +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/README.md +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/pyproject.toml +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/setup.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/event_tracking/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/load/load.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/transform/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/transform/transform.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.10.1 → ecopipeline-0.10.2}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.10.
|
|
3
|
+
version = 0.10.2
|
|
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
|
|
@@ -77,12 +77,12 @@ def flag_abnormal_COP(daily_data: pd.DataFrame, config : ConfigManager, system:
|
|
|
77
77
|
if bound_var in cop_columns:
|
|
78
78
|
for day, day_values in daily_data.iterrows():
|
|
79
79
|
if day_values[bound_var] > bounds['high_alarm'] or day_values[bound_var] < bounds['low_alarm']:
|
|
80
|
-
alarm_str = f"{bounds['pretty_name']} = {round(day_values[bound_var],2)}"
|
|
80
|
+
alarm_str = f"Unexpected COP Value detected: {bounds['pretty_name']} = {round(day_values[bound_var],2)}"
|
|
81
81
|
if day in alarms_dict:
|
|
82
|
-
alarms_dict[day]
|
|
82
|
+
alarms_dict[day].append([bound_var, alarm_str])
|
|
83
83
|
else:
|
|
84
|
-
alarms_dict[day] =
|
|
85
|
-
return _convert_event_type_dict_to_df(alarms_dict)
|
|
84
|
+
alarms_dict[day] = [[bound_var, alarm_str]]
|
|
85
|
+
return _convert_event_type_dict_to_df(alarms_dict, event_type="SILENT_ALARM")
|
|
86
86
|
|
|
87
87
|
def _check_if_during_ongoing_cop_alarm(daily_df : pd.DataFrame, config : ConfigManager, site_name : str = None) -> bool:
|
|
88
88
|
if site_name is None:
|
|
@@ -212,11 +212,12 @@ def _convert_event_type_dict_to_df(alarm_dict : dict, event_type = 'DATA_LOSS_CO
|
|
|
212
212
|
'variable_name' : []
|
|
213
213
|
}
|
|
214
214
|
for key, value in alarm_dict.items():
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
for i in range(len(value)):
|
|
216
|
+
events['start_time_pt'].append(key)
|
|
217
|
+
events['end_time_pt'].append(key)
|
|
218
|
+
events['event_type'].append(event_type)
|
|
219
|
+
events['event_detail'].append(value[i][1])
|
|
220
|
+
events['variable_name'].append(value[i][0])
|
|
220
221
|
|
|
221
222
|
event_df = pd.DataFrame(events)
|
|
222
223
|
event_df.set_index('start_time_pt', inplace=True)
|
|
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
|