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 authored and sk1p committed Oct 23, 2024
1 parent 89e9b35 commit bae4b2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libertem_live/udf/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class SignalMonitorUDF(UDF):

def get_backends(self):
''
# feature detection until we depend on a version with
# https://github.com/LiberTEM/LiberTEM/pull/1684
scipy_coo_array = getattr(self, 'BACKEND_SCIPY_COO_ARRAY', None)
return [
backend for backend in self.BACKEND_ALL
if backend not in {
self.BACKEND_CUPY_SCIPY_COO,
self.BACKEND_SCIPY_COO,
self.BACKEND_SCIPY_COO_ARRAY
}
}.union((scipy_coo_array, ) if scipy_coo_array is not None else tuple())
]

# def get_preferred_input_dtype(self):
Expand Down

0 comments on commit bae4b2e

Please sign in to comment.