[AstroPy] question re specutils

Aycha Tammour aycha.tammour at gmail.com
Wed Sep 17 10:12:38 EDT 2014


I have a question about one of Astropy's affiliated packages and I hope
someone here can help with it.
I am trying to use specutils' extinction module but it seems I am unable to
import it.

I tried:
import specutils
specutils.extinction.extinction_ccm89(wave, r_v=3.1)
And got:
AttributeError: 'module' object has no attribute 'extinction'

When I tried:
from specutils import extinction
I still got
ImportError: cannot import name extinction

Am I missing something here? I should mention that I was able to use some
of the functionality in spectrum1D.


Aycha Tammour
Astronomy PhD Candidate
University of Western Ontario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140917/8b2c02e6/attachment.html>

More information about the AstroPy mailing list