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-sims
csst_msc_sim
Commits
278305de
Commit
278305de
authored
1 year ago
by
Fang Yuedong
Browse files
Options
Download
Email Patches
Plain Diff
fix the memory issue when add brighter-fatter
parent
a6664237
1 merge request
!22
add field distortion test
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/Instrument/Chip/ChipUtils.py
+1
-1
ObservationSim/Instrument/Chip/ChipUtils.py
with
1 addition
and
1 deletion
+1
-1
ObservationSim/Instrument/Chip/ChipUtils.py
+
1
-
1
View file @
278305de
...
...
@@ -191,6 +191,6 @@ def add_brighter_fatter(img):
arr_imc
[:]
=
np
.
zeros
(
nn
)
lib_bf
.
addEffects
(
nx
,
ny
,
arr_ima
,
arr_imc
,
bit_flag
)
img
.
array
[:,
:]
=
np
.
array
(
arr_imc
[:]).
reshape
(
[
nx
,
ny
])
img
.
array
[:,
:]
=
np
.
reshape
(
arr_imc
,
[
nx
,
ny
])
del
arr_ima
,
arr_imc
return
img
\ No newline at end of file
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