Changeset 666
- Timestamp:
- 10/07/08 16:40:10 (1 month ago)
- Files:
-
- trunk/pysynphot/lib/__init__.py (modified) (1 diff)
- trunk/pysynphot/lib/spectrum.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pysynphot/lib/__init__.py
r634 r666 76 76 >>> g1=S.GaussianSource(18.3,18000,2000,fluxunits='abmag') 77 77 >>> print g1 78 Gaussian: mu=18000.000000,fwhm=2000.000000,flux=18.3 00000abmag78 Gaussian: mu=18000.000000,fwhm=2000.000000,flux=18.3 abmag 79 79 80 80 >>> unitflux=S.FlatSpectrum(18,fluxunits='abmag') trunk/pysynphot/lib/spectrum.py
r618 r666 397 397 return StdRenorm(self,band,RNval,RNUnits) 398 398 399 def effstim(self,fluxunits='photlam'): 400 print "?? %s"%fluxunits 401 raise NotImplementedError("Ticket #140: calcphot.effstim functionality") 402 399 403 class CompositeSourceSpectrum(SourceSpectrum): 400 404 '''Composite Source Spectrum object, handles addition, multiplication … … 726 730 self.sigma = fwhm / math.sqrt(8.0 * math.log(2.0)) 727 731 self.factor = flux / (math.sqrt(2.0 * math.pi) * self.sigma) 728 self.name ='Gaussian: mu=%f,fwhm=%f,flux=% f%s'%(self.center,self.input_fwhm,self.input_flux,self._input_units)732 self.name ='Gaussian: mu=%f,fwhm=%f,flux=%g %s'%(self.center,self.input_fwhm,self.input_flux,self._input_units) 729 733 730 734 def __str__(self): … … 1056 1060 throughput = property(GetThroughput, doc='Throughput for bandpass') 1057 1061 1062 def fwhm(self): 1063 raise NotImplementedError("#139: Implement calcband functionality") 1064 1058 1065 1059 1066 class CompositeSpectralElement(SpectralElement):
