Skip to content

Bug in opening Olympus *.vsi metadata for multi-dimensional (multiZ) files. #168

@LyesSp

Description

@LyesSp

Hi,

I'am trying to open Olympus *.vsi file with :

xml_str=bioformats.get_omexml_metadata(path)

Reading a .vsi file with a single focus plane succeeds, but attempting the same with vsi files that contain multiple Z slices results in the following issue::

Traceback (most recent call last):

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\javabridge\jutil.py", line 382, in run_script
result = call(context, "evaluateString",

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\javabridge\jutil.py", line 892, in call
result = fn(*nice_args)

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\javabridge\jutil.py", line 859, in fn
raise JavaException(x)

JavaException: Wrapped java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 (#11)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec
exec(code, globals, locals)

File "c:\users\pc\pictures\dev\olympus\make_wfml.py", line 36, in
xml_str=bf.get_omexml_metadata(path)

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\bioformats\formatreader.py", line 1041, in get_omexml_metadata
xml = jutil.run_script(script, dict(path=rdr.path, reader = rdr.rdr))

File "C:\Users\pc.conda\envs\tf2_env\lib\site-packages\javabridge\jutil.py", line 399, in run_script
raise JavaException(call(e.throwable, "unwrap", "()Ljava/lang/Object;"))

JavaException: Index: 3, Size: 3

org.mozilla.javascript.WrappedException: Wrapped java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 (#11)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen._java_python_bridge__2._c_script_0(:11)
at org.mozilla.javascript.gen._java_python_bridge__2.call()
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen._java_python_bridge__2.call()
at org.mozilla.javascript.gen._java_python_bridge__2.exec()
at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at loci.formats.in.CellSensReader.parseETSFile(CellSensReader.java:1210)
at loci.formats.in.CellSensReader.initFile(CellSensReader.java:742)
at loci.formats.FormatReader.setId(FormatReader.java:1443)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
9 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions