You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a few instances of repeating the same pattern for classifying IGRINS data based on its filename alone. For example:
if".spec_a0v.fits"infilepath: #Grab base file name for the uncertainity filepath_base=filepath[:-14]
elif".spec_flattened.fits"infilepath:
path_base=filepath[:-20]
elif".spec.fits"infilepath:
path_base=filepath[:-10]
This should streamline lots of methods that reapply the same logic, and should futureproof against future methods that need these qualifiers in order to process the data. For example, knowing if the file is online versus local changes the way we would search for the existence or not of ancillary files.
The text was updated successfully, but these errors were encountered:
We have a few instances of repeating the same pattern for classifying IGRINS data based on its filename alone. For example:
We should put this in to a modular function:
This should streamline lots of methods that reapply the same logic, and should futureproof against future methods that need these qualifiers in order to process the data. For example, knowing if the file is online versus local changes the way we would search for the existence or not of ancillary files.
The text was updated successfully, but these errors were encountered: