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
6fb3c1db
Commit
6fb3c1db
authored
Aug 18, 2023
by
BO ZHANG
🏀
Browse files
remove dfs note settings from CsstMsDataManager
parent
dbdc9d9a
Pipeline
#1161
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/crds.py
View file @
6fb3c1db
...
...
@@ -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
)
...
...
csst_common/data_manager.py
View file @
6fb3c1db
...
...
@@ -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"
]
...
...
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