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
f78adc77
Commit
f78adc77
authored
Sep 29, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
1f9bff72
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
f78adc77
...
...
@@ -625,7 +625,6 @@ class CsstMbiDataManager:
self
.
hardcode_history
.
append
(
dict
(
hdcd
=
fp
,
comment
=
comment
))
return
fp
@
staticmethod
def
quickstart
(
ver_sim
=
"C5.2"
,
dir_l1
=
"."
,
exposure_id
=
100
):
""" quick dataset generator for tests on dandelion or PMO
...
...
tests/test_data_manager.py
View file @
f78adc77
...
...
@@ -47,9 +47,9 @@ class TestCsstMsDataManager(unittest.TestCase):
def
test_sls_data_existence
(
self
):
self
.
assertTrue
(
self
.
dm_sls
.
available_detectors
==
CP
[
"sls"
][
"detectors"
])
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_detector
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_log
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_cat
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_crs
(
6
)))
self
.
assertTrue
(
isinstance
(
self
.
dm_sls
.
l1_detector
(
6
,
post
=
"
img
.fits"
),
str
))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_detector
(
1
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_log
(
1
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_cat
(
1
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_crs
(
1
)))
self
.
assertTrue
(
isinstance
(
self
.
dm_sls
.
l1_detector
(
1
,
post
=
"
flt
.fits"
),
str
))
self
.
assertTrue
(
isinstance
(
self
.
dm_sls
.
l1_file
(
name
=
"some_file.ext"
,
comment
=
"a demo file"
),
str
))
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