diff --git a/mica/vv/core.py b/mica/vv/core.py index 5b20ad25..923d2136 100644 --- a/mica/vv/core.py +++ b/mica/vv/core.py @@ -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) @@ -945,9 +945,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)) - ) + adat_files = glob(os.path.join(datadir, "pcad*N???_adat{}1.fits*".format(slot))) if not len(adat_files): return None hdulist = pyfits.open(adat_files[0])