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
dc994225
Commit
dc994225
authored
Aug 28, 2023
by
BO ZHANG
🏀
Browse files
remove use_dfs
parent
082956f0
Pipeline
#1170
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
dc994225
...
...
@@ -646,7 +646,7 @@ class CsstMsDataManager:
@
staticmethod
def
quickstart
(
ver_sim
=
"C6.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
,
use_dfs
=
False
,
dfs_node
=
"kmust"
,
n_jobs
=
18
,
backend
=
"multiprocessing"
dfs_node
=
"kmust"
,
n_jobs
=
18
,
backend
=
"multiprocessing"
):
"""
Quick dataset generator for tests on dandelion or PML
...
...
@@ -661,8 +661,6 @@ class CsstMsDataManager:
output directory
exposure_id : int
The serial number of the exposure. 20-154 for C5.2.
use_dfs : bool
If True, use DFS.
dfs_node : str
The DFS node. Defaults to "kmust", could be "pml".
n_jobs : int
...
...
@@ -690,7 +688,7 @@ class CsstMsDataManager:
return
CsstMsDataManager
.
from_dir
(
ver_sim
=
ver_sim
,
datatype
=
datatype
,
dir_l0
=
dir_l0
,
dir_l1
=
dir_l1
,
path_aux
=
path_aux
,
use_dfs
=
use_dfs
,
dfs_node
=
dfs_node
,
n_jobs
=
n_jobs
,
backend
=
backend
dfs_node
=
dfs_node
,
n_jobs
=
n_jobs
,
backend
=
backend
)
def
__repr__
(
self
):
...
...
tests/test_data_manager.py
View file @
dc994225
...
...
@@ -21,9 +21,9 @@ dir_unittest = "/nfsdata/share/pipeline-unittest/csst_common"
class
TestCsstMsDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C6.2"
,
datatype
=
"mbi"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
use_dfs
=
False
,
dfs_node
=
"kmust"
)
ver_sim
=
"C6.2"
,
datatype
=
"mbi"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
dfs_node
=
"kmust"
)
self
.
dm_sls
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C6.2"
,
datatype
=
"sls"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
use_dfs
=
False
,
dfs_node
=
"kmust"
)
ver_sim
=
"C6.2"
,
datatype
=
"sls"
,
dir_l1
=
dir_unittest
,
exposure_id
=
100
,
dfs_node
=
"kmust"
)
self
.
dm_mbi
.
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