Skip to content

Commit

Permalink
fix filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Sep 6, 2023
1 parent b61069e commit 7325875
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py/desiutil/test/test_annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ def test_annotate_qtable_with_units_present_bad_conversion(self, mock_log):
def test_identical_copy(self):
"""Test hdulist.copy().
"""
# new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_copy.fits')
new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_copy.fits')
new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_copy.fits')
# new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_copy.fits')
with fits.open(self.fits_file, mode='readonly') as hdulist:
new_hdulist = hdulist.copy()
new_hdulist.writeto(new_hdulist_name, overwrite=True)
Expand All @@ -336,8 +336,8 @@ def test_identical_copy(self):
def test_annotate(self):
"""Test adding units to a binary table.
"""
# new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_update.fits')
new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_update.fits')
new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_update.fits')
# new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_update.fits')
new_hdulist = annotate(self.fits_file, 2, new_hdulist_name, units={'RA': 'deg', 'DEC': 'deg'}, overwrite=True)
self.assertIn('TUNIT2', new_hdulist[2].header)
self.assertIn('TUNIT3', new_hdulist[2].header)
Expand All @@ -347,8 +347,8 @@ def test_annotate(self):
def test_annotate_comments(self):
"""Test adding comments to a binary table.
"""
# new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_update_comments.fits')
new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_update_comments.fits')
new_hdulist_name = os.path.join(self.tmp.name, 'test_annotate_update_comments.fits')
# new_hdulist_name = os.path.join(os.environ['HOME'], 'Downloads', 'test_annotate_update_comments.fits')
new_hdulist = annotate(self.fits_file, 2, new_hdulist_name, comments={'RA': 'RA', 'DEC': 'DEC'}, overwrite=True)
self.assertEqual(new_hdulist[2].header.comments['TTYPE2'], 'RA')
self.assertEqual(new_hdulist[2].header.comments['TTYPE3'], 'DEC')
Expand Down

0 comments on commit 7325875

Please sign in to comment.