Skip to content

Commit

Permalink
Input files with wavelengths out of error are now sorted to be in order.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-muthukrishna committed Apr 4, 2019
1 parent b218830 commit 933b67a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions astrodash/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def read_dat_file(self):
wave = np.array(wave)
flux = np.array(flux)

sorted_indexes = np.argsort(wave)
wave = wave[sorted_indexes]
flux = flux[sorted_indexes]

return wave, flux

def read_superfit_template(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
long_description = f.read()

setup(name='astrodash',
version='1.0.16',
version='1.0.17',
description='Deep Learning for Automated Spectral Classification of Supernovae',
long_description=long_description,
url='https://github.com/daniel-muthukrishna/DASH',
Expand Down

0 comments on commit 933b67a

Please sign in to comment.