Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
tweaks
parent
27d931af
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+3
-2
csst_common/data_manager.py
with
3 additions
and
2 deletions
+3
-2
csst_common/data_manager.py
+
3
-
2
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
))
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets