ecopipeline 0.9.3__tar.gz → 0.9.4__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.9.3/src/ecopipeline.egg-info → ecopipeline-0.9.4}/PKG-INFO +1 -1
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/setup.cfg +1 -1
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/event_tracking/event_tracking.py +2 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/extract/extract.py +3 -2
- {ecopipeline-0.9.3 → ecopipeline-0.9.4/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/LICENSE +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/README.md +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/pyproject.toml +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/setup.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/event_tracking/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/load/load.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/transform/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/transform/transform.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.9.3 → ecopipeline-0.9.4}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.9.
|
|
3
|
+
version = 0.9.4
|
|
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
|
|
@@ -50,6 +50,8 @@ def flag_boundary_alarms(df: pd.DataFrame, config : ConfigManager, default_fault
|
|
|
50
50
|
raise Exception(f"{required_column} is not present in Variable_Names.csv")
|
|
51
51
|
if not 'pretty_name' in bounds_df.columns:
|
|
52
52
|
bounds_df['pretty_name'] = bounds_df['variable_name']
|
|
53
|
+
else:
|
|
54
|
+
bounds_df['pretty_name'] = bounds_df['pretty_name'].fillna(bounds_df['variable_name'])
|
|
53
55
|
if not 'fault_time' in bounds_df.columns:
|
|
54
56
|
bounds_df['fault_time'] = default_fault_time
|
|
55
57
|
|
|
@@ -686,15 +686,16 @@ def fm_api_to_df(config: ConfigManager, startTime: datetime = None, endTime: dat
|
|
|
686
686
|
device_id = config.get_fm_device_id()
|
|
687
687
|
url = f"https://www.fieldpop.io/rest/method/fieldpop-api/deviceDataLog?happn_token={api_token}&deviceID={device_id}"
|
|
688
688
|
if not startTime is None:
|
|
689
|
-
url = f"{url}&startUTCsec={startTime.timestamp()}"
|
|
689
|
+
url = f"{url}&startUTCsec={int(startTime.timestamp())}"
|
|
690
690
|
else:
|
|
691
691
|
startTime = datetime(2000, 1, 1, 0, 0, 0) # Jan 1, 2000
|
|
692
692
|
if not endTime is None:
|
|
693
|
-
url = f"{url}&endUTCsec={endTime.timestamp()}"
|
|
693
|
+
url = f"{url}&endUTCsec={int(endTime.timestamp())}"
|
|
694
694
|
else:
|
|
695
695
|
endTime = datetime.now()
|
|
696
696
|
|
|
697
697
|
try:
|
|
698
|
+
print(url)
|
|
698
699
|
response = requests.get(url)
|
|
699
700
|
if response.status_code == 200:
|
|
700
701
|
df = pd.DataFrame()
|
|
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
|