PyOPIA 2.5.13__tar.gz → 2.6.0__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.
- {pyopia-2.5.13 → pyopia-2.6.0}/PKG-INFO +1 -1
- pyopia-2.6.0/pyopia/__init__.py +1 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/cli.py +1 -1
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/pipeline.py +9 -3
- pyopia-2.5.13/pyopia/__init__.py +0 -1
- {pyopia-2.5.13 → pyopia-2.6.0}/LICENSE +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/README.md +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/background.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/classify.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/exampledata.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/instrument/__init__.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/instrument/common.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/instrument/holo.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/instrument/silcam.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/instrument/uvp.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/io.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/plotting.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/process.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/simulator/__init__.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/simulator/silcam.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/statistics.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/tests/__init__.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/tests/test_classify.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/tests/test_notebooks.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyopia/tests/test_pipeline.py +0 -0
- {pyopia-2.5.13 → pyopia-2.6.0}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.6.0'
|
|
@@ -139,7 +139,7 @@ def process(config_filename: str, num_chunks: int = 1):
|
|
|
139
139
|
|
|
140
140
|
check_chunks(num_chunks, pipeline_config)
|
|
141
141
|
|
|
142
|
-
progress.console.print("[blue]OBTAIN
|
|
142
|
+
progress.console.print("[blue]OBTAIN IMAGE LIST")
|
|
143
143
|
raw_files = pyopia.pipeline.FilesToProcess(pipeline_config['general']['raw_files'])
|
|
144
144
|
conf_corrbg = pipeline_config['steps'].get('correctbackground', dict())
|
|
145
145
|
average_window = conf_corrbg.get('average_window', 0)
|
|
@@ -331,26 +331,32 @@ class FilesToProcess:
|
|
|
331
331
|
'''Build file list from glob pattern if specified.
|
|
332
332
|
Create FilesToProcess.chunked_files is chunks specified
|
|
333
333
|
File list from glob will be sorted.
|
|
334
|
+
If a filelist file is specified, load the list from there without sorting.
|
|
334
335
|
|
|
335
336
|
Parameters
|
|
336
337
|
----------
|
|
337
338
|
glob_pattern : str, optional
|
|
338
|
-
Glob pattern, by default None
|
|
339
|
+
Glob pattern, by default None. If it ends with .txt, interpret as a filelist file.
|
|
339
340
|
'''
|
|
340
341
|
def __init__(self, glob_pattern=None):
|
|
341
342
|
self.files = None
|
|
342
343
|
self.background_files = []
|
|
343
344
|
self.chunked_files = []
|
|
344
345
|
if glob_pattern is not None:
|
|
345
|
-
|
|
346
|
+
# If a .txt file is specified, this indicates we should get the filelist from there
|
|
347
|
+
if glob_pattern.endswith('.txt'):
|
|
348
|
+
self.from_filelist_file(glob_pattern)
|
|
349
|
+
else:
|
|
350
|
+
self.files = sorted(glob(glob_pattern))
|
|
346
351
|
|
|
347
352
|
def from_filelist_file(self, path_to_filelist):
|
|
348
353
|
'''
|
|
349
354
|
Initialize explicit list of files to process from a text file.
|
|
350
355
|
The text file should contain one path to an image per line, which should be processed in order.
|
|
351
356
|
'''
|
|
357
|
+
logger.info(f'Loading explicit image file list from file: {path_to_filelist}')
|
|
352
358
|
with open(path_to_filelist, 'r') as fh:
|
|
353
|
-
self.files =
|
|
359
|
+
self.files = [line.rstrip() for line in fh.readlines()]
|
|
354
360
|
|
|
355
361
|
def to_filelist_file(self, path_to_filelist):
|
|
356
362
|
'''Write file list to a txt file
|
pyopia-2.5.13/pyopia/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.5.13'
|
|
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
|