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

switch to CCDS

parent c99db93f
Pipeline #2293 failed with stage
in 0 seconds
...@@ -15,9 +15,9 @@ class CCDS: ...@@ -15,9 +15,9 @@ class CCDS:
print(self.ccds_cache) print(self.ccds_cache)
print("Setting CCDS environment variables ... ", end="") print("Setting CCDS environment variables ... ", end="")
os.environ["CRDS_MODE"] = "remote" os.environ["CCDS_MODE"] = "remote"
os.environ["CRDS_PATH"] = ccds_cache os.environ["CCDS_PATH"] = ccds_cache
os.environ["CRDS_OBSERVATORY"] = "csst" os.environ["CCDS_OBSERVATORY"] = "csst"
print("Done") print("Done")
print("Query for observatory ... ", end="") print("Query for observatory ... ", end="")
...@@ -42,12 +42,12 @@ class CCDS: ...@@ -42,12 +42,12 @@ class CCDS:
def __repr__(self): def __repr__(self):
return ( 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" - is_available={self.is_available}\n"
f" - observatory='{self.observatory}'\n" f" - observatory='{self.observatory}'\n"
f" - operational_context='{self.operational_context}'\n" f" - operational_context='{self.operational_context}'\n"
f" - ccds_root='{self.ccds_root}'\n" f" - ccds_root='{self.ccds_root}'\n"
f" - crdscache='{self.ccds_cache}'\n" f" - ccdscache='{self.ccds_cache}'\n"
) )
def get_refs( def get_refs(
......
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