Nat1405 / Nifty4Gemini

A Gemini Data Reduction Pipeline Framework
MIT License
0 stars 0 forks source link

Fix Path Separators throughout program #8

Open Nat1405 opened 4 years ago

Nat1405 commented 4 years ago

Nifty makes extensive use of string concatenation for its file paths where it should be using os.path.join(). Eg, it uses header = astropy.io.fits.open(rawPath+'/'+entry[0]) rather than header = astropy.io.fits.open(os.path.join(rawPath,entry[0])). I suspect this might cause Nifty to not work at all on Windows and fixing it could help add support for Windows users.

Essentially, go through the code and replace all string concatenations of file path names with os.path.join() calls.