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
3724cd6f
Commit
3724cd6f
authored
Mar 17, 2023
by
BO ZHANG
🏀
Browse files
compatible with C5.2 naming convention
parent
ca4aba09
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
3724cd6f
...
@@ -481,6 +481,10 @@ class CsstMsDataManager:
...
@@ -481,6 +481,10 @@ class CsstMsDataManager:
def
l0_crs
(
self
,
detector
=
6
):
def
l0_crs
(
self
,
detector
=
6
):
""" L0 cosmic ray file path """
""" L0 cosmic ray file path """
assert
detector
in
self
.
available_detectors
assert
detector
in
self
.
available_detectors
if
self
.
ver_sim
==
"C5.2"
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_CRS_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L
{
self
.
level
}
_
{
self
.
version
}
.
{
self
.
ext
}
"
else
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_CRS_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_CRS_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L
{
self
.
level
}
_V
{
self
.
version
}
.
{
self
.
ext
}
"
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L
{
self
.
level
}
_V
{
self
.
version
}
.
{
self
.
ext
}
"
fp
=
os
.
path
.
join
(
self
.
dir_l0
,
fn
)
fp
=
os
.
path
.
join
(
self
.
dir_l0
,
fn
)
...
...
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