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
c326c535
Commit
c326c535
authored
Oct 26, 2024
by
Wei Chengliang
Browse files
update codestyle-PEP8
parent
ba121152
Pipeline
#7106
failed with stage
in 0 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
catalog/Catalog_example.py
View file @
c326c535
catalog/testCat_fits.py
View file @
c326c535
...
...
@@ -177,7 +177,7 @@ class Catalog(CatalogBase):
# param["CSSTmag"]= True
# param["mag_r"] = 20.
# param['']
#
##
more keywords for stamp#
##
# more keywords for stamp#
param
[
'image'
]
=
hdu
[
0
].
data
param
[
'image'
]
=
param
[
'image'
]
/
(
np
.
sum
(
param
[
'image'
]))
obj
=
Stamp
(
param
)
...
...
observation_sim/ObservationSim.py
View file @
c326c535
...
...
@@ -25,7 +25,7 @@ class Observation(object):
def
prepare_chip_for_exposure
(
self
,
chip
,
ra_cen
,
dec_cen
,
pointing
,
wcs_fp
=
None
,
slsPSFOptim
=
False
):
# Get WCS for the focal plane
if
wcs_fp
==
None
:
if
wcs_fp
is
None
:
wcs_fp
=
self
.
focal_plane
.
getTanWCS
(
ra_cen
,
dec_cen
,
pointing
.
img_pa
,
chip
.
pix_scale
)
...
...
observation_sim/config/__init__.py
View file @
c326c535
observation_sim/config/header/__init__.py
View file @
c326c535
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