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
00508e40
Commit
00508e40
authored
Oct 25, 2024
by
Wei Chengliang
Browse files
update codestyle-PEP8
parent
27cb83b1
Pipeline
#7096
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_prescan_overscan_func.py
View file @
00508e40
...
...
@@ -10,6 +10,7 @@ import yaml
from
observation_sim.instruments
import
Chip
,
Filter
,
FilterParam
,
FocalPlane
# test FUNCTION --- START #
def
AddPreScan
(
GSImage
,
pre1
=
27
,
pre2
=
4
,
over1
=
71
,
over2
=
80
,
nsecy
=
2
,
nsecx
=
8
):
img
=
GSImage
.
array
...
...
@@ -94,10 +95,10 @@ class detModule_coverage(unittest.TestCase):
print
(
chip
.
cen_pix_x
,
chip
.
cen_pix_y
)
chip
.
img
=
AddPreScan
(
GSImage
=
chip
.
img
,
pre1
=
chip
.
prescan_x
,
pre2
=
chip
.
prescan_y
,
over1
=
chip
.
overscan_x
,
over2
=
chip
.
overscan_y
)
pre1
=
chip
.
prescan_x
,
pre2
=
chip
.
prescan_y
,
over1
=
chip
.
overscan_x
,
over2
=
chip
.
overscan_y
)
self
.
assertTrue
((
chip
.
prescan_x
+
chip
.
overscan_x
)
*
8
+
chip
.
npix_x
==
np
.
shape
(
chip
.
img
.
array
)[
1
])
self
.
assertTrue
((
chip
.
prescan_y
+
chip
.
overscan_y
)
*
2
+
chip
.
npix_y
==
np
.
shape
(
chip
.
img
.
array
)[
0
])
...
...
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