Skip to content

Commit

Permalink
Open up filename globs and regex for CP data
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Oct 9, 2024
1 parent 52f59a1 commit 6f54ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mica/vv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def _aiid_from_asol(self, asol_file, obsdir):
self.obspar["tstop"] <= header["TSTART"]
):
return None
aiid_match = re.search(r"(pcadf\d+[^_]*)_", asol_file)
aiid_match = re.search(r"(pcad\w\d+[^_]*)_", asol_file)
if aiid_match:
return dict(id=aiid_match.group(1), dir=obsdir)

Expand Down Expand Up @@ -946,7 +946,7 @@ def _read_ocat_stars(self):
def _identify_missing_slot(self, slot):
datadir = self.aspdir
adat_files = glob(
os.path.join(datadir, "pcadf*N???_adat{}1.fits*".format(slot))
os.path.join(datadir, "pcad*N???_adat{}1.fits*".format(slot))
)
if not len(adat_files):
return None
Expand Down

0 comments on commit 6f54ac3

Please sign in to comment.