spacetelescope / synphot_refactor

Synthetic photometry using Astropy
http://synphot.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
38 stars 25 forks source link

Duplicate wavelength Error #143

Closed bmorris3 closed 6 years ago

bmorris3 commented 6 years ago

Hey @pllim! I'm having an issue getting started with synphot. The issue is produced with the sample data in this repo:

https://github.com/bmorris3/synphot_debug

Take a peak at the notebook to see the problem. Any ideas on how to move forward?

Thanks!

pllim commented 6 years ago

Hi. It is a feature, not a bug. :wink:

The error is caused by the following lines in your data (there could be more because it stops at the first detection):

4.143134117126465 2.1734820684026998e-14
4.143134117126465 2.4097430051817775e-14

Having two different flux values for the same wavelength is ambiguous. The solution is to remove one of those or consolidate them into one row as you see fit. Hope this helps.

bmorris3 commented 6 years ago

Wow, thank you for digging so deep to find the error, that's a wacky one! Sorry to bother you for something so silly 😄

pllim commented 6 years ago

No worries. Good luck. :smile: