Browse Source

Reload cache files when switching between spectral line mode on/off.

master
Bob Eldering 8 months ago
parent
commit
2574be1f8e
  1. 10
      antab_editor_lib/meta_data.py

10
antab_editor_lib/meta_data.py

@ -310,8 +310,14 @@ class MetaData:
try:
self.fits_cache = pickle.load(f)
if check_cached_experiments(self.fits_cache):
print("Using FITS cache.")
use_cache = True
if (isinstance(self.fits_cache, SpectralFitsData)
!= read_spectral):
print("Cached spectral mode differs from "
"requested spectral mode, "
"refreshing cache")
else:
print("Using FITS cache.")
use_cache = True
else:
print("FITS cache exists, but does not contain the "
"requested experiments.")

Loading…
Cancel
Save