Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spyder freezes on assigning a fits table data #2783

Closed
elinor-lev opened this issue Oct 26, 2015 · 6 comments
Closed

Spyder freezes on assigning a fits table data #2783

elinor-lev opened this issue Oct 26, 2015 · 6 comments

Comments

@elinor-lev
Copy link

Description

Apfter successfully importing a fits table with pyfits, Spyder freezes (100% CPU) when assiging the table data to a variable.
What steps will reproduce the problem?

  1. open spyder
  2. Run these lines:
from astropy.io import fits as pyfits
f = pyfits.open('morphtable.fits')
tbdata = f[1].data

What is the expected output? What do you see instead?
expect to have a new ndarray tbdata contain 500 lines and 300 columns and get prompt back after few seconds.
Instead do not get prompt back, CPU runs at 100% and memory allocation gets increased.
Even if it occasionally manages to assign it, Spyder runs very slowly afterwards (few seconds after just hit 'enter').

Please provide any additional information below
This works perfectly from a simple ipython console outside spyder.
This only happens in MAC OSX 10.10.5, it worked fine in another spyder installation on Linux.

Version and main components

  • Spyder Version: 2.3.7
  • Python Version: 2.7.10
  • Qt Versions: 4.8.7, PyQt4 (API v2) 4.11.4 on Darwin

Optional dependencies

pyflakes >=0.5.0   :  1.0.0 (OK)
pep8 >=0.6         :  1.6.2 (OK)
pygments >=1.6     :  2.0.2 (OK)
IPython >=1.0      :  4.0.0 (OK)
zmq >=2.1.11       :  14.7.0 (OK)
qtconsole >=4.0    :  4.1.0 (OK)
pandas >=0.13.1    :  0.16.2 (OK)
sphinx >=0.6.6     :  1.3.1 (OK)
psutil >=0.3       :  3.2.2 (OK)
rope >=0.9.2       :  0.9.4 (OK)
jedi >=0.8.1;<0.9.0:  0.9.0 (NOK)
matplotlib >=1.0   :  1.4.3 (OK)
sympy >=0.7.3      :  0.7.6 (OK)
pylint >=0.25      :  None (NOK)

@ccordoba12
Copy link
Member

A couple of questions:

  1. Could you upload somewhere a fits file to test this use case in our side?
  2. tbdata should be an ndarray or a subclass of it?

@Nodd
Copy link
Contributor

Nodd commented Oct 27, 2015

Also, could you try closing the variable explorer pane ?

@elinor-lev
Copy link
Author

Closing the variable explorer indeed solved the issue! Thanks!

I attach it here just in case.

On Tue, Oct 27, 2015 at 7:50 AM, Joseph Martinot-Lagarde <
[email protected]> wrote:

Also, could you try closing the variable explorer pane ?


Reply to this email directly or view it on GitHub
#2783 (comment).

@ccordoba12
Copy link
Member

@elinor-lev, It seems Github doesn't receive attachments. Could you upload it somewhere else?

@elinor-lev
Copy link
Author

Sure, you can find it here:
https://www.dropbox.com/s/gz1t0jkeu61jddk/morphfile.fits?dl=0

On Tue, Oct 27, 2015 at 12:03 PM, Carlos Cordoba [email protected]
wrote:

@elinor-lev https://github.com/elinor-lev, It seems Github doesn't
receive attachments. Could you upload it somewhere else?


Reply to this email directly or view it on GitHub
#2783 (comment).

@ccordoba12
Copy link
Member

Thanks :-)

@ccordoba12 ccordoba12 changed the title freeze on assigning a fits table data Spyder freezes on assigning a fits table data Nov 16, 2015
@ccordoba12 ccordoba12 modified the milestones: v2.3.8, v3.0 Nov 16, 2015
ccordoba12 added a commit that referenced this issue Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants