diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2430370..093a556f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,6 +61,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install -e '.[dev]' + python -m pip install git+https://github.com/gselzer/napari.git@9ff2d7fadabe5aa7f1b5851efe0593b36a375b99 - name: Test napari-imagej uses: coactions/setup-xvfb@v1 diff --git a/pyproject.toml b/pyproject.toml index c8e8000d..43b9595b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ dependencies = [ "jpype1 >= 1.4.1", "labeling >= 0.1.12", "magicgui >= 0.5.1", - "napari >= 0.4.17", + "napari == 0.4.17", "numpy", "pandas", "pyimagej >= 1.4.1", diff --git a/src/napari_imagej/utilities/event_subscribers.py b/src/napari_imagej/utilities/event_subscribers.py index 90610802..16aec298 100644 --- a/src/napari_imagej/utilities/event_subscribers.py +++ b/src/napari_imagej/utilities/event_subscribers.py @@ -17,7 +17,7 @@ def onEvent(self, event): @JOverride def getEventClass(self): - return jc.SciJavaEvent.class_ + return jc.ModuleEvent.class_ @JOverride def equals(self, other): @@ -31,7 +31,14 @@ def __init__(self, progress_signal: Signal): @JOverride def onEvent(self, event): - self.progress_signal.emit(event) + try: + self.progress_signal.emit(event) + except Exception as e: + print(f"Fooooooooooooooooooooooooooooooo: {e}") + print( + f"Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: " + f"{self.progress_signal} of type {type(self.progress_signal)}" + ) @JOverride def getEventClass(self):