[AstroPy] Help needed - Pix2Sky error

Nadezhda Dencheva dencheva at stsci.edu
Thu Sep 10 16:40:17 EDT 2015


What is the OS? Can you post the errors?

Nadia
________________________________
From: astropy-bounces at scipy.org [astropy-bounces at scipy.org] on behalf of Christian Johnson [arcjohns at ucsc.edu]
Sent: Thursday, September 10, 2015 3:43 PM
To: Astronomical Python mailing list
Subject: Re: [AstroPy] Help needed - Pix2Sky error

Nadia,

Do you know of a simple way to install the master version? I tried following the instructions here: http://astropy.readthedocs.org/en/stable/install.html#building-from-source to install the development version but I'm getting errors trying to install

Thanks,
Christian

On Thu, Sep 10, 2015 at 11:48 AM, Nadezhda Dencheva <dencheva at stsci.edu<mailto:dencheva at stsci.edu>> wrote:
Christian,

This is in master, I don't think it's been released yet.

Nadia
________________________________
From: astropy-bounces at scipy.org<mailto:astropy-bounces at scipy.org> [astropy-bounces at scipy.org<mailto:astropy-bounces at scipy.org>] on behalf of Christian Johnson [arcjohns at ucsc.edu<mailto:arcjohns at ucsc.edu>]
Sent: Thursday, September 10, 2015 2:44 PM
To: Astronomical Python mailing list
Subject: Re: [AstroPy] Help needed - Pix2Sky error

Nadia,

Thanks for the reply! Unfortunately I get the same error with your syntax (AttributeError: 'module' object has no attribute 'Pix2Sky_AIT'). I believe my projections.py file is out of date- there's no AIT class defined in it, when it should look like this (https://github.com/astropy/astropy/blob/master/astropy/modeling/projections.py). I'm using astropy version 1.04 which I believe is the current version, so I'm confused about why I don't have the updated code?

Thanks,
Christian

On Thu, Sep 10, 2015 at 11:37 AM, Nadezhda Dencheva <dencheva at stsci.edu<mailto:dencheva at stsci.edu>> wrote:
Hi Christian,

It' s best to import models like this:

>>> from astropy.modeling import  models
>>> ait = models.Pix2Sky_AIT()
>>> ait(1, 2)
(1.0004603647362484, 2.000082499873663)
>>> ait.inverse(1.0004603647362484, 2.000082499873663)
(1.0, 2.0000000000000004)

Nadia

________________________________
From: astropy-bounces at scipy.org<mailto:astropy-bounces at scipy.org> [astropy-bounces at scipy.org<mailto:astropy-bounces at scipy.org>] on behalf of Christian Johnson [arcjohns at ucsc.edu<mailto:arcjohns at ucsc.edu>]
Sent: Thursday, September 10, 2015 2:05 PM
To: astropy at scipy.org<mailto:astropy at scipy.org>
Subject: [AstroPy] Help needed - Pix2Sky error

Hi all,

(if this is the wrong list to use for questions like this, please let me know!)

I'm attempting to use astropy to get data out of a FITS file in the Aitoff projection, and was trying to use the astropy.modeling.projections.Pix2Sky_AIT class (that I found here: http://astropy.readthedocs.org/en/latest/modeling/index.html). However, when I try to use it, I get an error that there is no module of that name ("AttributeError: 'module' object has no attribute 'Pix2Sky_AIT'"). I can successfully import astropy.modeling.projections.Projection or astropy.modeling.projections.Zenithal or a few others, but most throw this error.

Is there something I'm doing wrong, or does some other package need to be installed for these modules to work correctly?

Thanks in advance,
Christian Johnson

_______________________________________________
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<mailto: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/20150910/de49022b/attachment.html>


More information about the AstroPy mailing list