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
f02054bf
Commit
f02054bf
authored
Jan 21, 2025
by
Zhang Xin
Browse files
pep8
parent
0b7b3a2b
Pipeline
#7833
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
observation_sim/mock_objects/FlatLED.py
View file @
f02054bf
...
...
@@ -147,7 +147,7 @@ class FlatLED(MockObject):
y_seg_len
=
8
x_seg
=
int
(
self
.
chip
.
npix_x
/
x_seg_len
)
y_seg
=
int
(
self
.
chip
.
npix_y
/
y_seg_len
)
U
=
np
.
zeros
([
self
.
chip
.
npix_y
,
self
.
chip
.
npix_x
],
dtype
=
np
.
float32
)
U
=
np
.
zeros
([
self
.
chip
.
npix_y
,
self
.
chip
.
npix_x
],
dtype
=
np
.
float32
)
for
y_seg_i
in
np
.
arange
(
y_seg_len
):
for
x_seg_i
in
np
.
arange
(
x_seg_len
):
U
[
y_seg_i
*
y_seg
:(
y_seg_i
+
1
)
*
y_seg
,
x_seg_i
*
x_seg
:(
x_seg_i
+
1
)
*
x_seg
]
=
griddata
(
X_
,
Z_
,
(
...
...
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