Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
f46b435d
Commit
f46b435d
authored
1 year ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
add CsstMsFile.fno
parent
4a604e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+9
-0
csst_common/data_manager.py
with
9 additions
and
0 deletions
+9
-0
csst_common/data_manager.py
+
9
-
0
View file @
f46b435d
...
...
@@ -1064,6 +1064,15 @@ class CsstMsFile(dict):
f
"
{
self
.
obs_id
}
_
{
self
.
detector
}
_L1_V
{
self
.
version
}
_
{
post
}
"
return
os
.
path
.
join
(
self
.
dir_out
,
fn
)
def
fno
(
self
,
post
=
".fits"
):
if
post
.
startswith
(
"."
):
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
self
.
detector
}
_L1_V
{
self
.
version
}{
post
}
"
else
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
self
.
detector
}
_L1_V
{
self
.
version
}
_
{
post
}
"
return
fn
def
fpi
(
self
):
return
os
.
path
.
join
(
self
.
dir_in
,
self
.
filename
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets