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
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
17d8078f
...
...
@@ -18,7 +18,6 @@ import os
import
re
from
typing
import
Union
import
joblib
import
numpy
as
np
from
astropy.io
import
fits
from
astropy.table
import
Table
...
...
@@ -693,6 +692,8 @@ def test_dm():
import
joblib
from
csst_common.data_manager
import
CsstMsDataManager
dm
=
CsstMsDataManager
(
dfs_node
=
"pml"
)
def
f
(
dm
,
a
=
1
):
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