glue-viz / glue-astronomy

Plugin to add astronomy-specific functionality to glue
https://glue-astronomy.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
11 stars 12 forks source link

Glue window closes on 3D scatter plotting data in fits file #7

Open abhijeetmanhas opened 4 years ago

abhijeetmanhas commented 4 years ago

Describe the bug

I don't know whether it is right to raise issue here or main glue repo, as it was dealing with fits file so I raised here. It was importing Astronomy WCS plugin.

So the error is, when I try to plot light curve data from a fits file using 3D scatter plot, the glue window get closed without giving a message popup. The error log is given below:

To Reproduce Steps to reproduce the behavior such as:

  1. Download fits file for exoplanet light curve https://www.cfa.harvard.edu/~avanderb/k2c19/ep206295996.html .
  2. Open glue and import file.
  3. Use 3D scatter option for visualization.
  4. See error

Expected behavior Window should remain open and just display message like below or similar:

Incompatible way of displaying data.

Error Log

/home/abhimanhas/anaconda3/envs/sunpy-dev/lib/python3.7/site-packages/glue_vispy_viewers/extern/vispy/visuals/markers.py:560: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  ('a_edgewidth', np.float32, 1)])
Segmentation fault (core dumped)

Details:

Additional context

I was just trying to plot kepler exoplanet data stored in fits files downloaded from NASA k2 archive. I know 2d scatter plot is best way to visualize data, but atleast glue's GUI should give an error message on window, instead of closing it abruptly.