Skip to content

Commit

Permalink
Merge pull request #82 from pllim/fix-doc
Browse files Browse the repository at this point in the history
Fix redshift tutorial
  • Loading branch information
pllim committed Mar 15, 2018
2 parents 7f0a26d + 5520235 commit 91976c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/source/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ by the extinction curve:
Redshift the reddened spectrum above by :math:`z = 0.23`. Then, check that the
peak wavelength is indeed redder:

>>> sp2 = sp1.redshift(0.23)
>>> sp2 = sp1.redshift(0.23) # sp2 is in PHOTLAM
>>> sp2.convert('flam')
>>> sp1.wave[sp1.flux == max(sp1.flux)][0]
5026.7534
>>> sp2.wave[sp2.flux == max(sp2.flux)][0]
Expand Down
4 changes: 2 additions & 2 deletions pysynphot/test/test_mergewavesets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def setup_class(cls):
orig_comptable = cfg['comptable']

# Answers computed using specified tables
mtab = os.path.join(os.environ['PYSYN_CDBS'], 'mtab')
mtab = os.path.join(os.environ['PYSYN_CDBS'], 'mtab', 'OLD_FILES')
setref(graphtable=os.path.join(mtab, '14l1632sm_tmg.fits'),
comptable=os.path.join(mtab, 'OLD_FILES', '16n1832tm_tmc.fits'))
comptable=os.path.join(mtab, '16n1832tm_tmc.fits'))

def test_countrate(self):
bp = ObsBandpass('acs,hrc,f850lp')
Expand Down

0 comments on commit 91976c9

Please sign in to comment.