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
Bo Zhang
csst
Commits
372bbcb1
Commit
372bbcb1
authored
Jun 17, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
be99f12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst/msc/data_manager.py
View file @
372bbcb1
...
...
@@ -32,13 +32,12 @@ class CsstMscDataManager:
self
.
path_aux
=
path_aux
self
.
ver_sim
=
ver_sim
print
(
"globbing files ... "
,
end
=
""
)
print
(
"
@DM:
globbing files ... "
,
end
=
""
)
fps
=
self
.
glob_dir
(
dir_l0
,
ver_sim
=
ver_sim
)
if
force_all_ccds
:
assert
len
(
fps
)
==
len
(
CCD_ID_LIST
)
else
:
assert
len
(
fps
)
>
0
print
(
"{} L0 images found!"
.
format
(
len
(
fps
)))
if
ver_sim
==
"C3"
:
# get info
...
...
@@ -77,6 +76,9 @@ class CsstMscDataManager:
fps
=
glob
.
glob
(
pattern
)
fps
=
[
os
.
path
.
basename
(
fp
)
for
fp
in
fps
]
fps
.
sort
()
if
len
(
fps
)
==
0
:
print
(
"@DM.glob_dir: {} files found with pattern: {}"
.
format
(
len
(
fps
),
pattern
))
return
fps
def
l0_cat
(
self
,
ccd_id
=
6
):
...
...
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