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
73d1dd0a
Commit
73d1dd0a
authored
Dec 29, 2023
by
BO ZHANG
🏀
Browse files
compatible with CPIC level0_id
parent
a1f188b5
Pipeline
#2838
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/file.py
View file @
73d1dd0a
...
@@ -122,4 +122,8 @@ class File:
...
@@ -122,4 +122,8 @@ class File:
@
property
@
property
def
level0_id
(
self
):
def
level0_id
(
self
):
return
self
.
obs_id
+
self
.
detector
if
self
.
instrument
==
"MSC"
:
return
self
.
obs_id
+
self
.
detector
if
self
.
instrument
==
"CPIC"
:
return
self
.
obs_id
+
self
.
project
raise
ValueError
(
f
"Unmatched instrument:
{
self
.
instrument
}
"
)
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