Changeset 627
- Timestamp:
- 09/18/08 14:06:45 (2 months ago)
- Files:
-
- trunk/pysynphot/lib/obsbandpass.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pysynphot/lib/obsbandpass.py
r550 r627 44 44 self.name=self.obsmode._obsmode #str(self.obsmode) 45 45 46 #Check for valid bounds 47 self._checkbounds() 48 46 49 def __str__(self): 47 50 """Defer to ObservationMode component """ … … 56 59 return self.obsmode.showfiles() 57 60 58 59 61 62 def _checkbounds(self): 63 thru=self.throughput 64 if thru[0] != 0 or thru[-1] != 0: 65 print "Warning: throughput for this obsmode is not bounded by zeros. Endpoints: thru[0]=%g, thru[-1]=%g"%(thru[0],thru[-1]) 60 66
