Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "+q" to be more general in "get_expstart" #176

Open
Rplesha opened this issue Jul 2, 2020 · 0 comments
Open

Fix "+q" to be more general in "get_expstart" #176

Rplesha opened this issue Jul 2, 2020 · 0 comments
Labels

Comments

@Rplesha
Copy link

Rplesha commented Jul 2, 2020

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}'))

@Rplesha Rplesha added the Bug label Jul 2, 2020
@Rplesha Rplesha changed the title Fix "+q" to be more general Fix "+q" to be more general in "get_expstart" Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant