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

remove dfs note settings from CsstMsDataManager

parent dbdc9d9a
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)
+2 −2
Original line number Diff line number Diff line
@@ -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"]