Commit 6fb3c1db authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

remove dfs note settings from CsstMsDataManager

parent dbdc9d9a
Pipeline #1161 failed with stage
in 0 seconds
......@@ -32,7 +32,8 @@ class CRDS:
# dump mappings
client.dump_mappings(self.operational_context)
self.is_available = True
except BaseException:
except BaseException as e:
print("CRDS access failed! ", e.args)
self.operational_context = ""
self.is_available = False
print(self.operational_context)
......
......@@ -529,13 +529,13 @@ class CsstMsDataManager:
'shutter': '/crdsroot/references/msc/csst_msc_ms_shutter_11_000001.fits'}
"""
if self.crds.is_available:
print("Grab refs from CRDS ...")
print("CRDS available, use refs from CRDS ...")
return self.crds.retry(
self.crds.get_refs, 3,
file_path=self.l0_detector(detector)
)
else:
print("Grab refs from local files ...")
print("CRDS unavailable, use refs from local files ...")
refs = dict()
if self.datatype == "mbi":
ref_types = ["bias", "dark", "ledflat", "shutter"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment