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

update codestyle-PEP8

parent 6281c265
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -457,6 +457,10 @@ class Catalog(CatalogBase):

            self.objs.append(obj)

    def free_mem(self, **kward):
        self.starDDL.freeGlobeData()
        del self.starDLL

    def _load(self, **kwargs):
        self.objs = []
        self.ids = 0
@@ -499,10 +503,6 @@ class Catalog(CatalogBase):
        else:
            print("number of objects in catalog: ", len(self.objs))

    def free_mem(self, **kward):
        self.starDDL.freeGlobeData()
        del self.starDLL

    def load_sed(self, obj, **kwargs):
        if obj.type == 'star':
            # _, wave, flux = tag_sed(
+2 −3
Original line number Diff line number Diff line
@@ -161,8 +161,7 @@ class Filter(object):
            psf_fwhm=psf_fwhm, pixelSize=pix_scale, throughputFn=throughput_file, readout=5.0, skyFn=skyFn, darknoise=dark_noise, exTime=exptime, fw=full_well)

        if full_depth_exptime is not None:
            self.mag_limiting, _ = _util.calculateLimitMag(
            psf_fwhm=psf_fwhm, pixelSize=pix_scale, throughputFn=throughput_file, readout=5.0, skyFn=skyFn, darknoise=dark_noise, exTime=full_depth_exptime, fw=full_well)
            self.mag_limiting, _ = _util.calculateLimitMag(psf_fwhm=psf_fwhm, pixelSize=pix_scale, throughputFn=throughput_file, readout=5.0, skyFn=skyFn, darknoise=dark_noise, exTime=full_depth_exptime, fw=full_well)

        print("for filter %s: mag_limiting: %.3f, mag_saturation: %.3f" %
              (self.filter_type, self.mag_limiting, self.mag_saturation))
+1 −3
Original line number Diff line number Diff line
@@ -95,9 +95,7 @@ class CatalogBase(metaclass=ABCMeta):

        if norm_filt is not None:
            if hasattr(norm_filt, 'bandpass_full'):
                norm_filt = Table(
                    np.array(np.array([norm_filt.bandpass_full.wave_list*10.0, norm_filt.bandpass_full.func(
                    norm_filt.bandpass_full.wave_list)])).T, names=(['WAVELENGTH', 'SENSITIVITY']))
                norm_filt = Table(np.array(np.array([norm_filt.bandpass_full.wave_list*10.0, norm_filt.bandpass_full.func(norm_filt.bandpass_full.wave_list)])).T, names=(['WAVELENGTH', 'SENSITIVITY']))
            norm_thr_rang_ids = norm_filt['SENSITIVITY'] > 0.001
        else:
            norm_filt = Table(
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

Loading