Giter VIP home page Giter VIP logo

Comments (4)

AlexCoul avatar AlexCoul commented on June 15, 2024 1

Hi @ianhi, yep I just did!
As I said it's super small, but on my machine I can now use the live mode.

from napari-micromanager.

AlexCoul avatar AlexCoul commented on June 15, 2024

It's true, I was about to post an issue about that but I noticed this post, and I actually found a quick fix:
When I tried to use the Live mode, I had the error

TypeError                                 Traceback (most recent call last)
File ...\napari-micromanager\micromanager_gui\main_window.py:217, in MainWindow._start_live(self=<micromanager_gui.main_window.MainWindow object>)
    215 self.streaming_timer = QTimer()
    216 self.streaming_timer.timeout.connect(self.update_viewer)
--> 217 self.streaming_timer.start(self._mmc.getExposure())
        self.streaming_timer = None
        self = <micromanager_gui.main_window.MainWindow object at 0x000001372664B910>
        self._mmc = <CMMCorePlus at 0x13726666de0>

TypeError: arguments did not match any overloaded call:
  start(self, int): argument 1 has unexpected type 'float'
  start(self): too many arguments

so in main_window.py line 217 I changed self.streaming_timer.start(self._mmc.getExposure()) to self.streaming_timer.start(int(self._mmc.getExposure()))), and now the Live mode works :-)

from napari-micromanager.

ianhi avatar ianhi commented on June 15, 2024

@AlexCoul would you like to open a PR with your fix :) ?

from napari-micromanager.

fdrgsp avatar fdrgsp commented on June 15, 2024

fixed in #181

from napari-micromanager.

Related Issues (20)

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.