Skip to content

Commit

Permalink
WIP: Figure out what's wrong with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Jul 11, 2023
1 parent 34b1840 commit da91e7b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions src/napari_imagej/utilities/event_subscribers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit da91e7b

Please sign in to comment.