ecopipeline 0.8.9__py3-none-any.whl → 0.8.11__py3-none-any.whl
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/extract/extract.py +3 -3
- {ecopipeline-0.8.9.dist-info → ecopipeline-0.8.11.dist-info}/METADATA +1 -1
- {ecopipeline-0.8.9.dist-info → ecopipeline-0.8.11.dist-info}/RECORD +6 -6
- {ecopipeline-0.8.9.dist-info → ecopipeline-0.8.11.dist-info}/WHEEL +0 -0
- {ecopipeline-0.8.9.dist-info → ecopipeline-0.8.11.dist-info}/licenses/LICENSE +0 -0
- {ecopipeline-0.8.9.dist-info → ecopipeline-0.8.11.dist-info}/top_level.txt +0 -0
ecopipeline/extract/extract.py
CHANGED
|
@@ -767,7 +767,7 @@ def pull_egauge_data(config: ConfigManager, eGauge_ids: list, eGauge_usr : str,
|
|
|
767
767
|
|
|
768
768
|
os.chdir(original_directory)
|
|
769
769
|
|
|
770
|
-
def tb_api_to_df(config: ConfigManager, startTime: datetime = None, endTime: datetime = None, create_csv : bool = True, query_hours : int =
|
|
770
|
+
def tb_api_to_df(config: ConfigManager, startTime: datetime = None, endTime: datetime = None, create_csv : bool = True, query_hours : int = 1):
|
|
771
771
|
"""
|
|
772
772
|
Function connects to the things board manager api to pull data and returns a dataframe.
|
|
773
773
|
|
|
@@ -804,8 +804,8 @@ def tb_api_to_df(config: ConfigManager, startTime: datetime = None, endTime: dat
|
|
|
804
804
|
time_diff = endTime - startTime
|
|
805
805
|
midpointTime = startTime + time_diff / 2
|
|
806
806
|
# recursively construct the df
|
|
807
|
-
df_1 = tb_api_to_df(config, startTime, midpointTime, create_csv=False)
|
|
808
|
-
df_2 = tb_api_to_df(config, midpointTime, endTime, create_csv=False)
|
|
807
|
+
df_1 = tb_api_to_df(config, startTime, midpointTime, create_csv=False, query_hours=query_hours)
|
|
808
|
+
df_2 = tb_api_to_df(config, midpointTime, endTime, create_csv=False, query_hours=query_hours)
|
|
809
809
|
df = pd.concat([df_1, df_2])
|
|
810
810
|
df = df.sort_index()
|
|
811
811
|
df = df.groupby(df.index).mean()
|
|
@@ -2,7 +2,7 @@ ecopipeline/__init__.py,sha256=d48mO5La6OrQDkRe_qqoY6lUx7x-e8krOH388jmWjwU,218
|
|
|
2
2
|
ecopipeline/event_tracking/__init__.py,sha256=q49j46fXMUjNUPzL4FvXEppB93i3lUni-QUZpp61tt0,64
|
|
3
3
|
ecopipeline/event_tracking/event_tracking.py,sha256=LOCLE7ju320O7CrwnWRIqHRa2uAqoq-KvXZ3zWQ2S74,13224
|
|
4
4
|
ecopipeline/extract/__init__.py,sha256=gQ3sak6NJ63Gpo-hZXrtZfeKOTHLRyAVXfTgxxRpqPo,675
|
|
5
|
-
ecopipeline/extract/extract.py,sha256=
|
|
5
|
+
ecopipeline/extract/extract.py,sha256=feqmSEUYAGn1gl_gLqTsY8qOYVyDuWVwfUdxRlEqX24,49495
|
|
6
6
|
ecopipeline/load/__init__.py,sha256=NLa_efQJZ8aP-J0Y5xx9DP7mtfRH9jY6Jz1ZMZN_BAA,292
|
|
7
7
|
ecopipeline/load/load.py,sha256=Ptxr0MOjns_HeVSmZsLLApHJGB-z6XOB2m8LNiVaD7E,23860
|
|
8
8
|
ecopipeline/transform/__init__.py,sha256=hYb4F64fXdXtjBSYCqv6gLFBwKZjjnl0z7s291pFE98,2505
|
|
@@ -12,8 +12,8 @@ ecopipeline/transform/transform.py,sha256=S8fpAb45XBcYzeGNkxELiHM8-1jlNQqADV7_m-
|
|
|
12
12
|
ecopipeline/utils/ConfigManager.py,sha256=-g1wtExdvhYO5Y6Q3cRbywa__DxRMFruLrB4YanwaPY,12168
|
|
13
13
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
14
14
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
15
|
-
ecopipeline-0.8.
|
|
16
|
-
ecopipeline-0.8.
|
|
17
|
-
ecopipeline-0.8.
|
|
18
|
-
ecopipeline-0.8.
|
|
19
|
-
ecopipeline-0.8.
|
|
15
|
+
ecopipeline-0.8.11.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
ecopipeline-0.8.11.dist-info/METADATA,sha256=HFo9uw0zynyzql9HleX9KtUsZGZ7hkuyETw4mFhP8f0,2330
|
|
17
|
+
ecopipeline-0.8.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
ecopipeline-0.8.11.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
19
|
+
ecopipeline-0.8.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|