Skip to content

Commit

Permalink
Fix minor issue with file path variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Kaplan committed Aug 15, 2024
1 parent dc70ece commit b3f2489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/muler/igrins.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,15 +590,15 @@ def getSlitThroughput(self, slit_length=14.8, PA=90, guiding_error=1.5, col1=120
else: #If file does not exist, raise exception
raise Exception(
"Need .spec2d.fits file in the same directory as "
+ filepath
+ self.file
+ " in order to get an estimate of the slit profile. .spec2d.fits is missing."
)
if os.path.exists(path_K): #Check if 2D spectrum in a .spec2d.fits file exists
spec2d_K = fits.getdata(path_K)[::-1,:] #Read in spec2d.fits file if it exists
else: #If file does not exist, raise exception
raise Exception(
"Need .spec2d.fits file in the same directory as "
+ filepath
+ self.file
+ " in order to get an estimate of the slit profile. .spec2d.fits is missing."
)

Expand Down

0 comments on commit b3f2489

Please sign in to comment.