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

switch to CCDS

parent c99db93f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -15,9 +15,9 @@ class CCDS:
        print(self.ccds_cache)

        print("Setting CCDS environment variables ... ", end="")
        os.environ["CRDS_MODE"] = "remote"
        os.environ["CRDS_PATH"] = ccds_cache
        os.environ["CRDS_OBSERVATORY"] = "csst"
        os.environ["CCDS_MODE"] = "remote"
        os.environ["CCDS_PATH"] = ccds_cache
        os.environ["CCDS_OBSERVATORY"] = "csst"
        print("Done")

        print("Query for observatory ... ", end="")
@@ -42,12 +42,12 @@ class CCDS:

    def __repr__(self):
        return (
            f"< CRDS url='{os.getenv('CRDS_SERVER_URL', default='')}' >\n"
            f"< CCDS url='{os.getenv('CCDS_SERVER_URL', default='')}' >\n"
            f" - is_available={self.is_available}\n"
            f" - observatory='{self.observatory}'\n"
            f" - operational_context='{self.operational_context}'\n"
            f" - ccds_root='{self.ccds_root}'\n"
            f" - crdscache='{self.ccds_cache}'\n"
            f" - ccdscache='{self.ccds_cache}'\n"
        )

    def get_refs(