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-sims
csst_msc_sim
Commits
278305de
Commit
278305de
authored
Aug 30, 2023
by
Fang Yuedong
Browse files
fix the memory issue when add brighter-fatter
parent
a6664237
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Chip/ChipUtils.py
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
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