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
17d8078f
Commit
17d8078f
authored
Nov 21, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
27d931af
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
17d8078f
...
@@ -18,7 +18,6 @@ import os
...
@@ -18,7 +18,6 @@ import os
import
re
import
re
from
typing
import
Union
from
typing
import
Union
import
joblib
import
numpy
as
np
import
numpy
as
np
from
astropy.io
import
fits
from
astropy.io
import
fits
from
astropy.table
import
Table
from
astropy.table
import
Table
...
@@ -693,6 +692,8 @@ def test_dm():
...
@@ -693,6 +692,8 @@ def test_dm():
import
joblib
import
joblib
from
csst_common.data_manager
import
CsstMsDataManager
from
csst_common.data_manager
import
CsstMsDataManager
dm
=
CsstMsDataManager
(
dfs_node
=
"pml"
)
dm
=
CsstMsDataManager
(
dfs_node
=
"pml"
)
def
f
(
dm
,
a
=
1
):
def
f
(
dm
,
a
=
1
):
print
(
a
)
print
(
a
)
joblib
.
Parallel
(
n_jobs
=
10
,)(
joblib
.
delayed
(
f
)(
dm
)
for
i
in
range
(
10
))
joblib
.
Parallel
(
n_jobs
=
10
,
)(
joblib
.
delayed
(
f
)(
dm
)
for
i
in
range
(
10
))
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