Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
6c54c164
Commit
6c54c164
authored
Dec 13, 2023
by
BO ZHANG
🏀
Browse files
switch to CCDS
parent
c99db93f
Pipeline
#2293
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/ccds/ccds.py
View file @
6c54c164
...
...
@@ -15,9 +15,9 @@ class CCDS:
print
(
self
.
ccds_cache
)
print
(
"Setting CCDS environment variables ... "
,
end
=
""
)
os
.
environ
[
"C
R
DS_MODE"
]
=
"remote"
os
.
environ
[
"C
R
DS_PATH"
]
=
ccds_cache
os
.
environ
[
"C
R
DS_OBSERVATORY"
]
=
"csst"
os
.
environ
[
"C
C
DS_MODE"
]
=
"remote"
os
.
environ
[
"C
C
DS_PATH"
]
=
ccds_cache
os
.
environ
[
"C
C
DS_OBSERVATORY"
]
=
"csst"
print
(
"Done"
)
print
(
"Query for observatory ... "
,
end
=
""
)
...
...
@@ -42,12 +42,12 @@ class CCDS:
def
__repr__
(
self
):
return
(
f
"< C
R
DS url='
{
os
.
getenv
(
'C
R
DS_SERVER_URL'
,
default
=
''
)
}
' >
\n
"
f
"< C
C
DS url='
{
os
.
getenv
(
'C
C
DS_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
" - c
r
dscache='
{
self
.
ccds_cache
}
'
\n
"
f
" - c
c
dscache='
{
self
.
ccds_cache
}
'
\n
"
)
def
get_refs
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment