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
Bo Zhang
csst
Commits
dfafed3b
Commit
dfafed3b
authored
Jun 01, 2022
by
BO ZHANG
🏀
Browse files
shut down parallel in instrumental correction
parent
ba060b49
Changes
1
Show whitespace changes
Inline
Side-by-side
csst/msc/inst_corr.py
View file @
dfafed3b
...
...
@@ -3,6 +3,7 @@ from pathlib import Path
import
numpy
as
np
from
ccdproc
import
cosmicray_lacosmic
from
deepCR
import
deepCR
from
collections
import
OrderedDict
from
..core.processor
import
CsstProcessor
,
CsstProcStatus
from
..msc
import
CsstMscImgData
...
...
@@ -94,7 +95,7 @@ class CsstMscInstrumentProc(CsstProcessor):
inpaint_model
=
'ACS-WFC-F606W-2-32'
model
=
deepCR
(
clean_model
,
inpaint_model
,
device
=
'CPU'
,
hidden
=
50
)
masked
,
cleaned
=
model
.
clean
(
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
Tru
e
,
n_jobs
=
self
.
n_jobs
)
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
Fals
e
,
n_jobs
=
self
.
n_jobs
)
else
:
cleaned
,
masked
=
cosmicray_lacosmic
(
ccd
=
self
.
__img
,
sigclip
=
3.
,
# cr_threshold
...
...
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