Fixes bug mentioned in issue #178, and deals with the Quantity/ImageHDU issue.
from astropy.units import Quantity
energy_range = Quantity([10E3, 500E3], 'MeV')
array([[ 4.96538718e-08, 5.08790160e-08, 5.16831888e-08, ...,
So these are now the same (sorry, I haven't figured out how to write code blocks on here).
I'm merging this now because it's an important fix that @adonath needs for a script.
But @ellisowen, could you please add a few more asserts in this test:
E.g. you could assert some header keyword value.
And please pass the input energy range once in
PS: This is how you write a code block on Github so that it's nicely formatted: https://help.github.com/articles/github-flavored-markdown#syntax-highlighting