Giter VIP home page Giter VIP logo

lxnstack's People

Contributors

mauritiusdadd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lxnstack's Issues

lxnstack 1.5.0 doesn't launch

Kubuntu 15.04 x86_64. When trying to start the application it fails with this error:

"No handlers could be found for logger "lxnstack-root-logger"
QWidget: Must construct a QApplication before a QPaintDevice
Aborted (core dumped)"

ValueError?

On attempting to launch lxnstack I get the following error:

Traceback (most recent call last): File "/usr/bin/lxnstack", line 115, in <module> mainApp = main_app.theApp(lang,args) File "/usr/share/lxnstack/main_app.py", line 505, in __init__ self.setDisplayLevelsFitMode(0) File "/usr/share/lxnstack/main_app.py", line 1188, in setDisplayLevelsFitMode self.generateScaleMaps() File "/usr/share/lxnstack/main_app.py", line 2885, in generateScaleMaps qimg = utils.arrayToQImage(data2,bw_jet=self.use_colormap_jet,fit_levels=self.fit_levels,levels_range=self.levels_range) File "/usr/share/lxnstack/utils.py", line 1338, in arrayToQImage if img ==None: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()


Edit:
Changing lines 1338 and 1242 in /usr/share/lxnstack/utils.py to if img.any()==None: and if data.any()==None: respectively allows the program to launch, not sure if this causes any other issues yet.

AttributeError?

Hello! Just trying out the current version of lxnstack from Github, and after installing it (and all dependencies) I get an error:

darren@frodo2 /ldat1/stacking/astro $ lxnstack
FITS support enabled
CR2 support enabled
FOUND LIBV42
[WARNING] 2016-09-30 09:13:50,791 - <lxnstack.utils module>.getQIcon - No icon found for: "None"
[WARNING] 2016-09-30 09:13:50,838 - <lxnstack.utils module>.getQIcon - No icon found for: "export-calibrated"
[WARNING] 2016-09-30 09:13:50,891 - <lxnstack.utils module>.getQIcon - No icon found for: "generate-transf-table"
[WARNING] 2016-09-30 09:13:50,906 - <lxnstack.utils module>.getQIcon - No icon found for: "load-transf-table"
[WARNING] 2016-09-30 09:13:50,918 - <lxnstack.utils module>.getQIcon - No icon found for: "save-transf-table"
[WARNING] 2016-09-30 09:13:50,919 - <lxnstack.utils module>.getQIcon - No icon found for: "save-transf-table"
[WARNING] 2016-09-30 09:13:50,949 - <lxnstack.utils module>.getQIcon - No icon found for: "channel-mapping"
[WARNING] 2016-09-30 09:13:51,007 - <lxnstack.utils module>.getQIcon - No icon found for: "video.scheduler"
[WARNING] 2016-09-30 09:13:51,018 - <lxnstack.utils module>.getQIcon - No icon found for: "video-single-shot"
[WARNING] 2016-09-30 09:13:51,092 - <lxnstack.utils module>.getQIcon - No icon found for: "type-video-file"
[WARNING] 2016-09-30 09:13:51,104 - <lxnstack.utils module>.getQIcon - No icon found for: "type-frame-sequence"
[WARNING] 2016-09-30 09:13:51,245 - <lxnstack.videocapture.V4l2VideoDevice object at 0x7fd842665b98>.open - Cropping not supported
[ERROR] 2016-09-30 09:13:51,298 - <lxnstack.videocapture.V4l2VideoDevice object at 0x7fd842665b98>._enumerate_menu - Error 22: Invalid argument
[ERROR] 2016-09-30 09:13:51,300 - <lxnstack.videocapture.V4l2VideoDevice object at 0x7fd842665b98>._enumerate_menu - Error 22: Invalid argument
Traceback (most recent call last):
  File "/usr/local/bin/lxnstack", line 182, in <module>
    mainApp = lxnstack.main_app.theApp(lang, args)
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/main_app.py", line 396, in __init__
    self.updateCaptureDevicesList()
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/main_app.py", line 773, in updateCaptureDevicesList
    self.devices = tuple(videocapture.listVideoDevices())
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 40, in listVideoDevices
    vd_list += _list_cv2_devices()
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 3655, in _list_cv2_devices
    if not vd.open(dev):
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 2179, in open
    self._build_ui_controls_interface()
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 224, in _build_ui_controls_interface
    self._qt_build_ui_controls_interface()
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 2352, in _qt_build_ui_controls_interface
    self._qt_ui_helper_update_framerates(fps_menu)
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 2240, in _qt_ui_helper_update_framerates
    cidx = fps_menu.findData(QtCore.QVariant(int(self.getFrameRate())))
  File "/usr/local/lib/python2.7/dist-packages/lxnstack/videocapture.py", line 2576, in getFrameRate
    val = self._device.get(cv2.CAP_PROP_FPS)
AttributeError: 'module' object has no attribute 'CAP_PROP_FPS'

Have I done something wrong?

[LXN10007] Cannot decode some CR2 files

When trying to decode a CR2 file generated by a Canon EOS 400D, the following exception is raised:

ERROR: KeyError: 273 [cr2plugin]
 Traceback (most recent call last):
   File "/usr/share/lxnstack/main_app.py", line 1195, in doLoadFiles
     self.loadFiles()
   File "/usr/share/lxnstack/main_app.py", line 3042, in loadFiles
     ref = utils.Frame(str(newlist[0]), **self.frame_open_args)
   File "/usr/share/lxnstack/utils.py", line 416, in __init__
     _tmp_data = self.open(self.url, page, PIL_priority=True,
 only_sizes=True, **args)
   File "/usr/share/lxnstack/utils.py", line 480, in open
     only_sizes, force_update, **args)
   File "/usr/share/lxnstack/utils.py", line 727, in _open
     cr2file = cr2plugin.imread(file_name)
   File "/usr/share/lxnstack/cr2plugin.py", line 1106, in imread
     cr2img=QCR2Image(fname)
   File "/usr/share/lxnstack/cr2plugin.py", line 485, in __init__
     self.open()
   File "/usr/share/lxnstack/cr2plugin.py", line 604, in open
     self.CR2SLICES = (self.IFD3[StripOffset],
 KeyError: 273

Problems launching lxnstack

I am getting a few Python related problems when I launch lxnstack 1.4.4. Specifically problems along these lines:

$ lxnstack
FITS support enabled
CR2 support enabled
Traceback (most recent call last):
  File "/usr/bin/lxnstack", line 115, in <module>
    mainApp = main_app.theApp(lang,args)
  File "/usr/share/lxnstack/main_app.py", line 505, in __init__
    self.setDisplayLevelsFitMode(0)
  File "/usr/share/lxnstack/main_app.py", line 1188, in setDisplayLevelsFitMode
    self.generateScaleMaps()
  File "/usr/share/lxnstack/main_app.py", line 2885, in generateScaleMaps
    qimg = utils.arrayToQImage(data2,bw_jet=self.use_colormap_jet,fit_levels=self.fit_levels,levels_range=self.levels_range)
  File "/usr/share/lxnstack/utils.py", line 1338, in arrayToQImage
    if img==None:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

This happens immediately when I launch lxnstack as shown. I believe I have all the right dependencies installed:

$ python --version
Python 2.7.12

$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

[LXN10008] Sometimes the program hangs while searching for hot pixels.

Sometimes the program hangs while searching for hot pixels.
The following backtrace can be obtained by stopping the program manually with Ctrl-c in the console:

ERROR: KeyboardInterrupt [numpy.core.numeric]
Traceback (most recent call last):
  File "/usr/share/lxnstack/main_app.py", line 5165, in doStack self.stack()
  File "/usr/share/lxnstack/main_app.py", line 5315, in stack_stk=self.getStackingMethod(lght_method,self.framelist, self._bas, self._drk, self._flt,**lght_args)
  File "/usr/share/lxnstack/main_app.py", line 5143, in getStackingMethod return self.average(framelist, bias_image, dark_image, flat_image, **args)
  File "/usr/share/lxnstack/main_app.py", line 5740, in average post_operation = np.divide, **args)
  File "/usr/share/lxnstack/main_app.py", line 5493, in nativeOperationOnImages master_bias, master_dark, master_flat, hot_pixels = self.generateMasters(bias_image,dark_image,flat_image)
  File "/usr/share/lxnstack/main_app.py", line 5371, in generateMasters hot_pixels=np.argwhere((master_dark-dmin)>n*fac)            
  File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 629, in argwhere return transpose(asanyarray(a).nonzero())
  File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 487, in transpose return _wrapit(a, 'transpose', axes)
  File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 38, in _wrapit result = getattr(asarray(obj),method)(*args, **kwds)
  File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 320, in asarray return array(a, dtype, copy=False, order=order)

KeyboardInterrupt
ERROR: KeyboardInterrupt [main_app]
Traceback (most recent call last):
  File "/usr/share/lxnstack/main_app.py", line 2221, in colorBarPaintEvent def colorBarPaintEvent(self, obj):
KeyboardInterrupt

IndexError (values of x and y are not integers for call to getOriginalData()[y, x])

  • and can't do sub-pixel alignment on very small [32x24] image, but I'm not sure if that's related to the other errors
  • l is missing in the error message (should be sub-pixel)
    [WARNING] 2017-10-25 20:47:25,951 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:27,290 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:27,781 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:27,916 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,051 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,071 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,089 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,108 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,357 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,610 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,745 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,765 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    [WARNING] 2017-10-25 20:47:28,784 - <lxnstack.utils module>._correlate_mono - Shift is too big for sub-pixe alignment
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/lxnstack/guicontrols.py", line 997, in imageLabelMouseMoveEvent
    pix_val = self.mapped_image.getOriginalData()[y, x]
    IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/lxnstack/guicontrols.py", line 997, in imageLabelMouseMoveEvent
    pix_val = self.mapped_image.getOriginalData()[y, x]
    IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/lxnstack/guicontrols.py", line 997, in imageLabelMouseMoveEvent
    pix_val = self.mapped_image.getOriginalData()[y, x]
    IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/lxnstack/guicontrols.py", line 997, in imageLabelMouseMoveEvent
    pix_val = self.mapped_image.getOriginalData()[y, x]
    IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/lxnstack/guicontrols.py", line 997, in imageLabelMouseMoveEvent
    pix_val = self.mapped_image.getOriginalData()[y, x]
    IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

[LXN10010] Support for FIST datacube.

Currently FITS datacube can be only read and with some limitations.
Lxnstack should be able to read and write FITS datacube and the user should be able to choose the format of the output data (single HDU with multidimentional data or mupliple HDUs with 2D/1D data)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.