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
Liu Dezi
csst_msc_sim
Commits
47a3d5d5
Commit
47a3d5d5
authored
May 08, 2024
by
Fang Yuedong
Browse files
fix the value used for pixel_scale in test_focalplane.py
parent
d649c1e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_focalplane.py
View file @
47a3d5d5
...
...
@@ -20,12 +20,12 @@ class TestFocalPlane(unittest.TestCase):
def
test_fp_method
(
self
):
wcs
=
self
.
focal_plane
.
getTanWCS
(
192.8595
,
0.
,
0.
*
galsim
.
degrees
,
0.
0
074
)
192.8595
,
0.
,
0.
*
galsim
.
degrees
,
0.074
)
sky_coverage
=
self
.
focal_plane
.
getSkyCoverage
(
wcs
,
x0
=-
1
,
x1
=
0
,
y0
=-
1
,
y1
=
0
)
print
(
sky_coverage
.
area
())
self
.
assertTrue
(
abs
(
sky_coverage
.
area
()
-
0.
0
074
**
2
/
(
3600.
**
2
))
<
1e13
)
self
.
assertTrue
(
abs
(
sky_coverage
.
area
()
-
0.074
**
2
/
(
3600.
**
2
))
<
1e13
)
if
__name__
==
'__main_'
:
if
__name__
==
'__main_
_
'
:
unittest
.
main
()
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