shapepipe.modules.get_images_package.get_images
shapepipe.modules.get_images_package.get_images¶
GET IMAGES.
This module copies all images required for processing.
- Author
Martin Kilbinger <martin.kilbinger@cea.fr>
- in2out_pattern(number)[source]¶
Get In2out Pattern.
Transform input to output number pattern or image ID.
- class GetImages(retrieve_method, retrieve_options, input_file_list, input_numbering, input_file_pattern, input_file_ext, output_file_pattern, w_log, check_existing_dir=None, n_expected=None, n_try=3)[source]¶
Bases:
object
Get Images.
Class handling retrieval of input images.
- Parameters
retrieve_method (str) – Copy/download method
retrieve_option (str) – Retrieve options
input_file_list (list) – Input files
input_numbering (str) – Numbering scheme, python regexp
input_file_pattern (list) – File pattern including input number template of input files
input_file_ext (list) – Input file extensions
output_file_pattern (list) – Output file patterns
w_log (logging.Logger) – Log file
check_existing_dir (str, optional) – If not
None
, only retrieve image if not existing at this path (recursively)n_expected (int, optional) – Number of expected files per type and ID to download/check for existence
n_try (int, optional) – Number of attempts for VOs download, default is
3
- get_file_list(image_number_list, dest_dir, use_output_file_pattern=False)[source]¶
Get File List.
Return lists of file paths to retrieve.
- Parameters
- Returns
Complete file paths, one list for each input file type
- Return type