[AstroPy] question re specutils
Wolfgang Kerzendorf
wkerzendorf at gmail.com
Sun Sep 21 09:35:40 EDT 2014
Hi Tom,
Yes there are plans for a 0.1 release, but there are still some specwcs
features that should be easily implementable that I want to stick in there
before releasing. But it is on my agenda.
Cheers,
Wolfgang
On Thu, Sep 18, 2014 at 4:15 PM, Thomas Robitaille <
thomas.robitaille at gmail.com> wrote:
> Hi Wolfgang,
>
> Thanks for clarifying this! Are there plans for a 0.1 release, since
> this would make it easier for people to try it out?
>
> Cheers,
> Tom
>
> Wolfgang Kerzendorf wrote:
> > Hi Aycha,
> >
> > Erik B. has already given a relatively good instruction how to install
> > specutils. As Tom R. said there has not been an official release of
> > specutils, however it is ready for science (and is also being used for
> > that ;-) ). Obviously it depends on what the science you want to do.
> > Kyle et al. has written the extinction part and documentation and it is
> > mostly ready for consumption (I used it a couple of times).
> >
> > It is pretty clearly laid out in the document that Erik sent
> > (
> http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages
> )
> > of what to do -- including the need to install cython.
> >
> > Let us know how it goes,
> > Wolfgang
> >
> > On Thu, Sep 18, 2014 at 1:39 PM, Thomas Robitaille
> > <thomas.robitaille at gmail.com <mailto:thomas.robitaille at gmail.com>>
> wrote:
> >
> > Hi Aycha,
> >
> > Just to echo what Erik Bray said, there hasn't actually been a
> specutils
> > release yet, so in addition to meaning that it is a bit harder to
> > install, the package may not be ready for 'science' use yet (and the
> API
> > may not be stable).
> >
> > Maybe Wolfgang or someone else involved in specutils can give an
> update
> > on the current status?
> >
> > Cheers,
> > Tom
> >
> > Aycha Tammour wrote:
> > > Erik,
> > >
> > > pip install specutils was not able to install the package (No
> > > distributions at all found for specutils) even when I tried
> > > --allow-unvirified and --allow-external.
> > >
> > > Although pip search specutils seemed to find the package.
> > >
> > > I tried installing from source on a MAC and a unix machine and got
> > error
> > > messages about cythoning some file (code.py, I think).
> > >
> > > Best,
> > > Aycha
> > >
> > > On Wed, Sep 17, 2014 at 4:40 PM, Erik Bray <embray at stsci.edu
> > <mailto:embray at stsci.edu>
> > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>> wrote:
> > >
> > > On 09/17/2014 11:46 AM, Aycha Tammour wrote:
> > > > Thanks Erik. This makes sense but there is actually a
> > > setup_package.py file in
> > > > the directory which I used to install specutils with
> > > >
> > > > python setup_package.py install
> > > >
> > > > Nothing showed on my terminal which seems a bit suspicious.
> > >
> > > setup_package.py is not the file you are looking for.
> > >
> > > Please follow the instructions at
> > >
> > >
> >
> http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages
> > >
> > > if you want to install from source, or better still just do
> `pip
> > > install specutils`.
> > >
> > > Erik
> > >
> > > > On Wed, Sep 17, 2014 at 11:18 AM, Erik Bray <
> embray at stsci.edu
> > <mailto:embray at stsci.edu>
> > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>
> > > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>
> > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>>> wrote:
> > > >
> > > > On 09/17/2014 11:15 AM, Aycha Tammour wrote:
> > > > > Hi Erik,
> > > > >
> > > > > specutils.__version__
> > > > > ''
> > > > >
> > > > > specutils.__file__
> > > > > 'specutils/__init__.py'
> > > > >
> > > > > The package I am using is the one I grabbed from the
> > github
> > > repo just yesterday.
> > > >
> > > > It sounds like you're just trying to import the package
> > > directly out of the
> > > > repository clone without building the package first or
> > > installing it.
> > > >
> > > > It looks like specutils doesn't have installation
> > instructions
> > > as such, but I
> > > > recommend looking at the installation instructions for
> > Astropy
> > > as it applies all
> > > > the same:
> > > >
> > > > http://docs.astropy.org/en/stable/install.html
> > > >
> > > > Erik
> > > >
> > > > > On Wed, Sep 17, 2014 at 11:10 AM, Erik Bray
> > <embray at stsci.edu <mailto:embray at stsci.edu>
> > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>
> > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>
> > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>>
> > > > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>
> > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>
> > > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>
> > <mailto:embray at stsci.edu <mailto:embray at stsci.edu>>>>> wrote:
> > > > >
> > > > > On 09/17/2014 10:12 AM, Aycha Tammour wrote:
> > > > > > Hi,
> > > > > >
> > > > > > 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.
> > > > >
> > > > > When you import specutils what do
> > > > >
> > > > > >>> specutils.__version__
> > > > >
> > > > > and
> > > > >
> > > > > >>> specutils.__file__
> > > > >
> > > > > show?
> > > > >
> > > > > _______________________________________________
> > > > > AstroPy mailing list
> > > > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>>
> > > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>>>
> > > > > http://mail.scipy.org/mailman/listinfo/astropy
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > AstroPy mailing list
> > > > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>>
> > > > > http://mail.scipy.org/mailman/listinfo/astropy
> > > > >
> > > >
> > > > _______________________________________________
> > > > AstroPy mailing list
> > > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>>
> > > > http://mail.scipy.org/mailman/listinfo/astropy
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > AstroPy mailing list
> > > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > > http://mail.scipy.org/mailman/listinfo/astropy
> > > >
> > >
> > > _______________________________________________
> > > AstroPy mailing list
> > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > <mailto:AstroPy at scipy.org <mailto:AstroPy at scipy.org>>
> > > http://mail.scipy.org/mailman/listinfo/astropy
> > >
> > >
> > >
> > >
> > > --
> > > Aycha Tammour
> > > Astronomy PhD Candidate
> > > University of Western Ontario
> > >
> > > _______________________________________________
> > > AstroPy mailing list
> > > AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> > > http://mail.scipy.org/mailman/listinfo/astropy
> >
> >
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140921/3eb72f2c/attachment.html>
More information about the AstroPy
mailing list