Commit c326c535 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent ba121152
Pipeline #7106 failed with stage
in 0 seconds
...@@ -72,7 +72,7 @@ class Catalog(CatalogBase): ...@@ -72,7 +72,7 @@ class Catalog(CatalogBase):
This is a must implemented method which is used to read in all objects, and This is a must implemented method which is used to read in all objects, and
then convert them to observation_sim.mock_objects (Star, Galaxy, or Quasar). then convert them to observation_sim.mock_objects (Star, Galaxy, or Quasar).
Currently, Currently,
the model of observation_sim.mock_objects.Star class requires: the model of observation_sim.mock_objects.Star class requires:
param["star"] : int param["star"] : int
specify the object type: 0: galaxy, 1: star, 2: quasar specify the object type: 0: galaxy, 1: star, 2: quasar
...@@ -84,7 +84,7 @@ class Catalog(CatalogBase): ...@@ -84,7 +84,7 @@ class Catalog(CatalogBase):
Declination (in degrees) Declination (in degrees)
param["mag_use_normal"]: float param["mag_use_normal"]: float
the absolute magnitude in a particular filter the absolute magnitude in a particular filter
NOTE: if that filter is not the corresponding CSST filter, the NOTE: if that filter is not the corresponding CSST filter, the
load_norm_filt(obj) function must be implemented to load the filter load_norm_filt(obj) function must be implemented to load the filter
throughput of that particular photometric system throughput of that particular photometric system
...@@ -99,7 +99,7 @@ class Catalog(CatalogBase): ...@@ -99,7 +99,7 @@ class Catalog(CatalogBase):
Declination (in degrees) Declination (in degrees)
param["mag_use_normal"]: float param["mag_use_normal"]: float
the absolute magnitude in a particular filter the absolute magnitude in a particular filter
NOTE: if that filter is not the corresponding CSST filter, the NOTE: if that filter is not the corresponding CSST filter, the
load_norm_filt(obj) function must be implemented to load the filter load_norm_filt(obj) function must be implemented to load the filter
throughput of that particular photometric system throughput of that particular photometric system
param["bfrac"] : float param["bfrac"] : float
......
...@@ -177,7 +177,7 @@ class Catalog(CatalogBase): ...@@ -177,7 +177,7 @@ class Catalog(CatalogBase):
# param["CSSTmag"]= True # param["CSSTmag"]= True
# param["mag_r"] = 20. # param["mag_r"] = 20.
# param[''] # param['']
### more keywords for stamp### # more keywords for stamp#
param['image'] = hdu[0].data param['image'] = hdu[0].data
param['image'] = param['image']/(np.sum(param['image'])) param['image'] = param['image']/(np.sum(param['image']))
obj = Stamp(param) obj = Stamp(param)
......
...@@ -25,7 +25,7 @@ class Observation(object): ...@@ -25,7 +25,7 @@ class Observation(object):
def prepare_chip_for_exposure(self, chip, ra_cen, dec_cen, pointing, wcs_fp=None, slsPSFOptim=False): def prepare_chip_for_exposure(self, chip, ra_cen, dec_cen, pointing, wcs_fp=None, slsPSFOptim=False):
# Get WCS for the focal plane # Get WCS for the focal plane
if wcs_fp == None: if wcs_fp is None:
wcs_fp = self.focal_plane.getTanWCS( wcs_fp = self.focal_plane.getTanWCS(
ra_cen, dec_cen, pointing.img_pa, chip.pix_scale) ra_cen, dec_cen, pointing.img_pa, chip.pix_scale)
......
from .ChipOutput import ChipOutput from .ChipOutput import ChipOutput
from .Pointing import Pointing from .Pointing import Pointing
\ No newline at end of file
from .ImageHeader import generatePrimaryHeader from .ImageHeader import generatePrimaryHeader
from .ImageHeader import generateExtensionHeader from .ImageHeader import generateExtensionHeader
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment