Although it doesn't happen often, exposures can also end in an "s" rather than a "q". We should fix this line to be more general by adding a wildcard after the first 8 characters instead:
|
exposure = filedata['EXPNAME'][:-1] + 'q' |
|
co_file = os.path.join(os.path.dirname(filedata['FILENAME']), f'{exposure}_{possible_file}') |
proposed change:
exposure = filedata['EXPNAME'][:-1] + '*'
co_file = glob.glob(os.path.join(os.path.dirname(filedata['FILENAME']), f'{exposure}_{possible_file}'))
Although it doesn't happen often, exposures can also end in an "s" rather than a "q". We should fix this line to be more general by adding a wildcard after the first 8 characters instead:
cosmo/cosmo/filesystem.py
Line 237 in f4c9323
cosmo/cosmo/filesystem.py
Line 240 in f4c9323
proposed change:
exposure = filedata['EXPNAME'][:-1] + '*'co_file = glob.glob(os.path.join(os.path.dirname(filedata['FILENAME']), f'{exposure}_{possible_file}'))