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
888b9f4d
Commit
888b9f4d
authored
Nov 08, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
d31e4bd4
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_data_manager.py
View file @
888b9f4d
...
@@ -13,14 +13,15 @@ import os
...
@@ -13,14 +13,15 @@ import os
import
unittest
import
unittest
from
csst_common.data_manager
import
CsstMsDataManager
from
csst_common.data_manager
import
CsstMsDataManager
from
csst_common.params
import
CSST_PARAMS
as
CP
from
csst_common.params
import
CSST_PARAMS
as
CP
dir_unittest
=
"/nfsdata/users/csstpipeline/L1Pipeline/unittests/csst_common"
class
TestCsstMsDataManager
(
unittest
.
TestCase
):
class
TestCsstMsDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
def
setUp
(
self
)
->
None
:
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
self
.
dm_sls
=
CsstMsDataManager
.
quickstart
(
self
.
dm_sls
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"sls"
,
dir_l1
=
"."
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
ver_sim
=
"C5.2"
,
datatype
=
"sls"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
self
.
dm_mbi
.
target_detectors
=
None
self
.
dm_mbi
.
target_detectors
=
None
self
.
dm_sls
.
target_detectors
=
None
self
.
dm_sls
.
target_detectors
=
None
...
...
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