ptomato / Beams

Open-source laser beam profiling software designed for cheap webcams
MIT License
23 stars 13 forks source link

Error finding "Low intensity contrast" colormap #4

Closed ptomato closed 9 years ago

ptomato commented 9 years ago

If you select the "Low intensity contrast" colormap in the Video tab, you get this error:

Exception occurred in traits notification handler.
Please check the log file for details.
Exception occurred in traits notification handler for object: <beams.CameraImage.CameraImage object at 0x7f2467378fb0>, trait: cmap, old value: None, new value: <function awesome at 0x7f24673e2488>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/traits/trait_notifiers.py", line 340, in __call__
    self.handler( *args )
  File "build/bdist.linux-x86_64/egg/beams/CameraImage.py", line 97, in _cmap_changed
    self._image.color_mapper = cmap_func(self._image.value_range)
  File "/usr/lib/python2.7/dist-packages/chaco/default_colormaps.py", line 122, in cmap
    return func(range, **traits)
  File "build/bdist.linux-x86_64/egg/beams/AwesomeColorMaps.py", line 58, in awesome
    N.loadtxt('../data/awesomecolormap.csv', delimiter=','),
  File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 734, in loadtxt
    fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: '../data/awesomecolormap.csv'
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/beams/ColorMapEditor.py", line 27, in _on_paint
  File "build/bdist.linux-x86_64/egg/beams/AwesomeColorMaps.py", line 58, in awesome
  File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 734, in loadtxt
    fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: '../data/awesomecolormap.csv'