ecopipeline 0.7.5__py3-none-any.whl → 0.7.6__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 +7 -1
- {ecopipeline-0.7.5.dist-info → ecopipeline-0.7.6.dist-info}/METADATA +1 -1
- {ecopipeline-0.7.5.dist-info → ecopipeline-0.7.6.dist-info}/RECORD +6 -6
- {ecopipeline-0.7.5.dist-info → ecopipeline-0.7.6.dist-info}/WHEEL +1 -1
- {ecopipeline-0.7.5.dist-info → ecopipeline-0.7.6.dist-info}/licenses/LICENSE +0 -0
- {ecopipeline-0.7.5.dist-info → ecopipeline-0.7.6.dist-info}/top_level.txt +0 -0
ecopipeline/extract/extract.py
CHANGED
|
@@ -151,11 +151,17 @@ def extract_new(startTime: datetime, filenames: List[str], decihex = False, time
|
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
else:
|
|
154
|
+
endTime_int = endTime
|
|
154
155
|
if epochFormat:
|
|
155
156
|
startTime_int = int(startTime.timestamp())
|
|
157
|
+
if not endTime is None:
|
|
158
|
+
endTime_int = int(endTime.timestamp())
|
|
156
159
|
else:
|
|
157
160
|
startTime_int = int(startTime.strftime(dateFormat))
|
|
158
|
-
|
|
161
|
+
if not endTime is None:
|
|
162
|
+
endTime_int = int(endTime.strftime(dateFormat)
|
|
163
|
+
)
|
|
164
|
+
return_list = list(filter(lambda filename: int(filename[dateStringStartIdx:dateStringEndIdx]) >= startTime_int and (endTime_int is None or int(filename[dateStringStartIdx:dateStringEndIdx]) < endTime_int), filenames))
|
|
159
165
|
return return_list
|
|
160
166
|
|
|
161
167
|
def extract_files(extension: str, config: ConfigManager, data_sub_dir : str = "", file_prefix : str = "") -> List[str]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ecopipeline/__init__.py,sha256=vCRzwd781ciCSXMP1ycM_BXAqxj3KVaNKIjsLOPcbwc,171
|
|
2
2
|
ecopipeline/extract/__init__.py,sha256=3u_CUMdCguVewU3kN8x6xhVNyo1-p-gwTrhjOh7Psqg,645
|
|
3
|
-
ecopipeline/extract/extract.py,sha256=
|
|
3
|
+
ecopipeline/extract/extract.py,sha256=Fg1zUWESLVMV8apwCIu7s--t4qqRIO0vz5eM5jAnpE4,43613
|
|
4
4
|
ecopipeline/load/__init__.py,sha256=NLa_efQJZ8aP-J0Y5xx9DP7mtfRH9jY6Jz1ZMZN_BAA,292
|
|
5
5
|
ecopipeline/load/load.py,sha256=D3KdQZ08hYRso42p59YE-eVQaTHuANCJ0YeJvRnOgG4,23078
|
|
6
6
|
ecopipeline/transform/__init__.py,sha256=hYb4F64fXdXtjBSYCqv6gLFBwKZjjnl0z7s291pFE98,2505
|
|
@@ -10,8 +10,8 @@ ecopipeline/transform/transform.py,sha256=DBQD4WqKmdXnGQMAj6tg75HtXiSemIc7c6nZxz
|
|
|
10
10
|
ecopipeline/utils/ConfigManager.py,sha256=avhUEpx7WhhmnT-MB8OQ_siVgS1k5zp7KCYOyzzOJkE,10506
|
|
11
11
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
12
12
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
13
|
-
ecopipeline-0.7.
|
|
14
|
-
ecopipeline-0.7.
|
|
15
|
-
ecopipeline-0.7.
|
|
16
|
-
ecopipeline-0.7.
|
|
17
|
-
ecopipeline-0.7.
|
|
13
|
+
ecopipeline-0.7.6.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
ecopipeline-0.7.6.dist-info/METADATA,sha256=7FW9Ttnogj_NseuwtWy5SbvXFRVH2hp7McSLQ4wizAM,2329
|
|
15
|
+
ecopipeline-0.7.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
ecopipeline-0.7.6.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
17
|
+
ecopipeline-0.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|