Skip to content

Conversation

@mwcraig
Copy link
Member

@mwcraig mwcraig commented Jul 27, 2019

This closes a couple of issues by allowing regular expression patterns as the values in files_filtered and headers, hdus, etc.

For example, #480 asked for the ability to select objects that are either "flat" or "dome". This could now be done with:

image_coll = ImageFileCollection('rawdir')
fl = image_coll.hdus(return_fname=True, regex_match=True, object='FLAT|dome’)

The regex searches are case insensitive to match the behavior of the existing behavior.

This addresses part of #595 (the wildcards in the values part).

@mwcraig mwcraig added this to the 2.0.0 milestone Jul 27, 2019
@mwcraig mwcraig merged commit d13b621 into astropy:master Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants