pysis.util package¶
Submodules¶
pysis.util.file_manipulation module¶
Utilities to help with file manipulation.
-
pysis.util.file_manipulation.
file_variations
(filename, extensions)[source]¶ Create a variation of file names.
Generate a list of variations on a filename by replacing the extension with a the provided list.
Parameters: - filename – The original file name to use as a base.
- extensions – A list of file extensions to generate new filenames.
-
pysis.util.file_manipulation.
write_file_list
(filename, file_list=[], glob=None)[source]¶ Write a list of files to a file.
Parameters: - filename – the name of the file to write the list to
- file_list – a list of filenames to write to a file
- glob – if glob is specified, it will ignore file_list and instead create a list of files based on the pattern provide by glob (ex. *.cub)
Module contents¶
Utilities to help with common Isis patterns.
-
pysis.util.
write_file_list
(filename, file_list=[], glob=None)[source]¶ Write a list of files to a file.
Parameters: - filename – the name of the file to write the list to
- file_list – a list of filenames to write to a file
- glob – if glob is specified, it will ignore file_list and instead create a list of files based on the pattern provide by glob (ex. *.cub)
-
pysis.util.
file_variations
(filename, extensions)[source]¶ Create a variation of file names.
Generate a list of variations on a filename by replacing the extension with a the provided list.
Parameters: - filename – The original file name to use as a base.
- extensions – A list of file extensions to generate new filenames.