Skip to content

Commit

Permalink
Make sure it works without support in LiberTEM
Browse files Browse the repository at this point in the history
  • Loading branch information
uellue committed Oct 22, 2024
1 parent 97f89f2 commit 539817f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ dependencies = [
"libertem-dectris>=0.2.14",
"libertem-asi-tpx3>=0.2.14",
"libertem-qd-mpx>=0.2.14",
# FIXME temporary patch until https://github.com/LiberTEM/LiberTEM/pull/1684
# is released, see also https://github.com/LiberTEM/LiberTEM-live/pull/165
"sparseconverter>=0.4.0",
]
keywords = ["electron microscopy"]
classifiers = [
Expand Down
4 changes: 3 additions & 1 deletion src/libertem_live/udf/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
from sparseconverter import SCIPY_COO_ARRAY

from libertem.udf import UDF

Expand All @@ -22,7 +23,8 @@ def get_backends(self):
if backend not in {
self.BACKEND_CUPY_SCIPY_COO,
self.BACKEND_SCIPY_COO,
self.BACKEND_SCIPY_COO_ARRAY
# FIXME replace with constant from UDF as soon as available
SCIPY_COO_ARRAY,
}
]

Expand Down

0 comments on commit 539817f

Please sign in to comment.