We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7682fb0 commit d72a608Copy full SHA for d72a608
1 file changed
active_plugins/cpij/server.py
@@ -196,7 +196,13 @@ def _convert_java_to_python_type(ij, return_value):
196
# TODO actualize changes in a virtual ImagePlus. Remove this when pyimagej does this innately
197
if issubclass(return_class, jpype.JClass("ij.ImagePlus")):
198
ij.py.synchronize_ij1_to_ij2(return_value)
199
- return ij.py.from_java(return_value)
+ py_img = ij.py.from_java(return_value)
200
+
201
+ # HACK
202
+ # Workaround for DataArrays potentially coming back with Java names. Fixed upstream in:
203
+ # https://github.com/imagej/pyimagej/commit/a1861b6c1658d6751fa314650b13411f956549ab
204
+ py_img.name = ij.py.from_java(py_img.name)
205
+ return py_img
206
207
# Not a supported type
208
return None
0 commit comments