Loading observation_sim/mock_objects/Quasar.py +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ class Quasar(MockObject): del self.sed def getGSObj(self, psf, g1=0, g2=0, flux=None, filt=None, tel=None, exptime=150.): if flux == None: if flux is None: flux = self.getElectronFluxFilt(filt, tel, exptime) qso = galsim.Gaussian(sigma=1.e-8, flux=1.) qso = qso.withFlux(flux) Loading observation_sim/mock_objects/Stamp.py +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class Stamp(MockObject): del self.sed def drawObj_multiband(self, tel, pos_img, psf_model, bandpass_list, filt, chip, nphotons_tot=None, g1=0, g2=0, exptime=150., fd_shear=None): if nphotons_tot == None: if nphotons_tot is None: nphotons_tot = self.getElectronFluxFilt(filt, tel, exptime) try: Loading observation_sim/mock_objects/Star.py +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class Star(MockObject): del self.sed def getGSObj(self, psf, g1=0, g2=0, flux=None, filt=None, tel=None, exptime=150.): if flux == None: if flux is None: flux = self.getElectronFluxFilt(filt, tel, exptime) # star = galsim.Gaussian(sigma=1.e-8, flux=1.) star = galsim.DeltaFunction() Loading @@ -35,7 +35,7 @@ class Star(MockObject): raise ValueError( "!!!The number of PSF profiles and the number of bandpasses must be equal.") objs = [] if nphotons_tot == None: if nphotons_tot is None: nphotons_tot = self.getElectronFluxFilt(filt, tel, exptime) try: Loading tests/test_SpecDisperse.py +2 −2 Original line number Diff line number Diff line Loading @@ -428,8 +428,8 @@ class TestSpecDisperse(unittest.TestCase): plt.xlim(6200, 10000) plt.ylim(1, 4) plt.yscale('log') plt.xlabel('$\lambda$') plt.ylabel('$F\lambda$') plt.xlabel(r'$\lambda$') plt.ylabel(r'$F\lambda$') plt.legend(['one spec', 'split in 8000 A']) plt.show() Loading tests/test_Straylight.py +1 −1 Original line number Diff line number Diff line Loading @@ -192,7 +192,7 @@ class TestStraylight(unittest.TestCase): plt.figure() plt.plot(spec['WAVELENGTH'], spec['FLUX'], 'r') plt.xlabel('WAVELENGTH') plt.ylabel('F$\lambda$(erg/s/cm2/A/arcsec2)') plt.ylabel(r'F$\lambda$(erg/s/cm2/A/arcsec2)') plt.xlim(2000, 10000) plt.show() median = np.median(sl_e_pix[0:tnum]) Loading Loading
observation_sim/mock_objects/Quasar.py +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ class Quasar(MockObject): del self.sed def getGSObj(self, psf, g1=0, g2=0, flux=None, filt=None, tel=None, exptime=150.): if flux == None: if flux is None: flux = self.getElectronFluxFilt(filt, tel, exptime) qso = galsim.Gaussian(sigma=1.e-8, flux=1.) qso = qso.withFlux(flux) Loading
observation_sim/mock_objects/Stamp.py +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class Stamp(MockObject): del self.sed def drawObj_multiband(self, tel, pos_img, psf_model, bandpass_list, filt, chip, nphotons_tot=None, g1=0, g2=0, exptime=150., fd_shear=None): if nphotons_tot == None: if nphotons_tot is None: nphotons_tot = self.getElectronFluxFilt(filt, tel, exptime) try: Loading
observation_sim/mock_objects/Star.py +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class Star(MockObject): del self.sed def getGSObj(self, psf, g1=0, g2=0, flux=None, filt=None, tel=None, exptime=150.): if flux == None: if flux is None: flux = self.getElectronFluxFilt(filt, tel, exptime) # star = galsim.Gaussian(sigma=1.e-8, flux=1.) star = galsim.DeltaFunction() Loading @@ -35,7 +35,7 @@ class Star(MockObject): raise ValueError( "!!!The number of PSF profiles and the number of bandpasses must be equal.") objs = [] if nphotons_tot == None: if nphotons_tot is None: nphotons_tot = self.getElectronFluxFilt(filt, tel, exptime) try: Loading
tests/test_SpecDisperse.py +2 −2 Original line number Diff line number Diff line Loading @@ -428,8 +428,8 @@ class TestSpecDisperse(unittest.TestCase): plt.xlim(6200, 10000) plt.ylim(1, 4) plt.yscale('log') plt.xlabel('$\lambda$') plt.ylabel('$F\lambda$') plt.xlabel(r'$\lambda$') plt.ylabel(r'$F\lambda$') plt.legend(['one spec', 'split in 8000 A']) plt.show() Loading
tests/test_Straylight.py +1 −1 Original line number Diff line number Diff line Loading @@ -192,7 +192,7 @@ class TestStraylight(unittest.TestCase): plt.figure() plt.plot(spec['WAVELENGTH'], spec['FLUX'], 'r') plt.xlabel('WAVELENGTH') plt.ylabel('F$\lambda$(erg/s/cm2/A/arcsec2)') plt.ylabel(r'F$\lambda$(erg/s/cm2/A/arcsec2)') plt.xlim(2000, 10000) plt.show() median = np.median(sl_e_pix[0:tnum]) Loading