Skip to content

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

Description

@Rplesha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions