Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created December 3, 2014 09:32
Show Gist options
  • Save cdeil/c89f1c4b8d1d4513e4c4 to your computer and use it in GitHub Desktop.
Save cdeil/c89f1c4b8d1d4513e4c4 to your computer and use it in GitHub Desktop.
$ ginga
failed to set WCS package preference:
failed to set FITS package preference:
Error importing Ginga config file: No module named 'ginga_config'
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/main.py", line 327, in main
import ginga_config
/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/RGBMap.py:168: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if self.iarr != None:
/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/BaseImage.py:31: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if data_np == None:
No method found matching 'kp_poly_add'
No method found matching 'ms_draw'
No method found matching 'ms_cursor'
No method found matching 'kp_poly_del'
No method found matching 'kp_edit_del'
No method found matching 'ms_wheel'
No method found matching 'ms_edit'
No method found matching 'ms_none'
Error making callback 'set': index 0 is out of bounds for axis 0 with size 0
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/misc/Callback.py", line 70, in make_callback
res = method(*cb_args, **cb_kwdargs)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1393, in auto_levels_cb
self.auto_levels()
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1370, in auto_levels
loval, hival = autocuts.calc_cut_levels(image)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 405, in calc_cut_levels
num_points=self.num_points)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 424, in calc_zscale
loval, hival = zscale.zscale_samples(samples, contrast=contrast)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/util/zscale.py", line 76, in zscale_samples
zmin = samples[0]
No method found matching 'kp_poly_add'
No method found matching 'ms_draw'
No method found matching 'ms_cursor'
No method found matching 'kp_poly_del'
No method found matching 'kp_edit_del'
No method found matching 'ms_wheel'
No method found matching 'ms_edit'
No method found matching 'ms_none'
Error making callback 'set': index 0 is out of bounds for axis 0 with size 0
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/misc/Callback.py", line 70, in make_callback
res = method(*cb_args, **cb_kwdargs)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1393, in auto_levels_cb
self.auto_levels()
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1370, in auto_levels
loval, hival = autocuts.calc_cut_levels(image)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 405, in calc_cut_levels
num_points=self.num_points)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 424, in calc_zscale
loval, hival = zscale.zscale_samples(samples, contrast=contrast)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/util/zscale.py", line 76, in zscale_samples
zmin = samples[0]
Error making callback 'set': index 0 is out of bounds for axis 0 with size 0
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/misc/Callback.py", line 70, in make_callback
res = method(*cb_args, **cb_kwdargs)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1393, in auto_levels_cb
self.auto_levels()
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1370, in auto_levels
loval, hival = autocuts.calc_cut_levels(image)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 405, in calc_cut_levels
num_points=self.num_points)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 424, in calc_zscale
loval, hival = zscale.zscale_samples(samples, contrast=contrast)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/util/zscale.py", line 76, in zscale_samples
zmin = samples[0]
Error making callback 'set': index 0 is out of bounds for axis 0 with size 0
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/misc/Callback.py", line 70, in make_callback
res = method(*cb_args, **cb_kwdargs)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1393, in auto_levels_cb
self.auto_levels()
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py", line 1370, in auto_levels
loval, hival = autocuts.calc_cut_levels(image)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 405, in calc_cut_levels
num_points=self.num_points)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/AutoCuts.py", line 424, in calc_zscale
loval, hival = zscale.zscale_samples(samples, contrast=contrast)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/util/zscale.py", line 76, in zscale_samples
zmin = samples[0]
/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py:703: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if (whence <= 0.0) or (self._rgbarr == None):
/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141203011503-py3.4.egg/ginga/ImageView.py:714: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if (whence <= 2.0) or (self._rgbarr2 == None):
^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment