ecopipeline 0.9.2__py3-none-any.whl → 0.9.3__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 +4 -0
- {ecopipeline-0.9.2.dist-info → ecopipeline-0.9.3.dist-info}/METADATA +1 -1
- {ecopipeline-0.9.2.dist-info → ecopipeline-0.9.3.dist-info}/RECORD +6 -6
- {ecopipeline-0.9.2.dist-info → ecopipeline-0.9.3.dist-info}/WHEEL +0 -0
- {ecopipeline-0.9.2.dist-info → ecopipeline-0.9.3.dist-info}/licenses/LICENSE +0 -0
- {ecopipeline-0.9.2.dist-info → ecopipeline-0.9.3.dist-info}/top_level.txt +0 -0
ecopipeline/extract/extract.py
CHANGED
|
@@ -728,6 +728,10 @@ def fm_api_to_df(config: ConfigManager, startTime: datetime = None, endTime: dat
|
|
|
728
728
|
json_message = response.json()
|
|
729
729
|
string_to_match = 'The log size is too large - please try again with a smaller date range.'
|
|
730
730
|
if 'error' in json_message and 'message' in json_message['error'] and json_message['error']['message'] == string_to_match:
|
|
731
|
+
if endTime - timedelta(minutes=30) < startTime:
|
|
732
|
+
# if we can't retrieve less then 30 minutes of data, the dataframe is bust...
|
|
733
|
+
print(f"Unable to retrieve data for {startTime} - {endTime}")
|
|
734
|
+
return pd.DataFrame()
|
|
731
735
|
# Calculate the midpoint between the two datetimes
|
|
732
736
|
time_diff = endTime - startTime
|
|
733
737
|
midpointTime = startTime + time_diff / 2
|
|
@@ -2,7 +2,7 @@ ecopipeline/__init__.py,sha256=d48mO5La6OrQDkRe_qqoY6lUx7x-e8krOH388jmWjwU,218
|
|
|
2
2
|
ecopipeline/event_tracking/__init__.py,sha256=hVV2IHyt3pLSIOESpINr8-sQBmK98t7CiVb1IlvE5xQ,84
|
|
3
3
|
ecopipeline/event_tracking/event_tracking.py,sha256=Ti2OJ5cVuBOWEJjgsV0049vHv8941cYusV3Xci2MVuU,16983
|
|
4
4
|
ecopipeline/extract/__init__.py,sha256=gQ3sak6NJ63Gpo-hZXrtZfeKOTHLRyAVXfTgxxRpqPo,675
|
|
5
|
-
ecopipeline/extract/extract.py,sha256=
|
|
5
|
+
ecopipeline/extract/extract.py,sha256=BSvXUUDBZnSQ7zlrB_gmoQCoWVMj2Ph_1wl1EGKVzcQ,51393
|
|
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=YveBLBsNhfI4qZP04doa0NrTbEKvjDAUDEKtEPdFPfU,2545
|
|
@@ -12,8 +12,8 @@ ecopipeline/transform/transform.py,sha256=wL4B00XBwLWVlf7goOLSHKgLFmIsXprQNepGLL
|
|
|
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.9.
|
|
16
|
-
ecopipeline-0.9.
|
|
17
|
-
ecopipeline-0.9.
|
|
18
|
-
ecopipeline-0.9.
|
|
19
|
-
ecopipeline-0.9.
|
|
15
|
+
ecopipeline-0.9.3.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
ecopipeline-0.9.3.dist-info/METADATA,sha256=wzBFt9aIO-L-5ZeOxo_6Myjn3Lx0LMbgoKJueX_IZQs,2329
|
|
17
|
+
ecopipeline-0.9.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
ecopipeline-0.9.3.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
19
|
+
ecopipeline-0.9.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|