Open tibuch opened 7 months ago
@tibuch
I pushed a commit to the main branch with those changes:
//private static final String OME_ZARR = ".*.zarr/(?<"+WELL+">[A-Z]/[0-9]+)/(?<"+SITE+">[0-9]+)$";
private static final String OME_ZARR = ".+\\.zarr[\\\\/](?<"+WELL+">[A-Z][\\\\/][0-9]+)[\\\\/](?<"+SITE+">[0-9]+)$";
Hopefully this make the regex work on all OS.
As such things are usually not working the first time (and I do not have a Windows machine) it would be great if you could test this from within your IDE by building the latest main branch.
Please check that it also still works on Linux.
Another thing, could you please have a look into the .zattrs
file how the paths to the wells are stored there?
I think it should be the top level .zattrs
.... if they contain forward slashes there also on Windows then we may have to also change other things, not sure....
Inside the .zattrs
the paths have forward slashes:
{
"columnIndex": 1,
"path": "A/02",
"rowIndex": 0
},
I will test the fix on Linux. @imagejan could you give it a try on you windows machine?
@tischi wrote:
if they contain forward slashes there also on Windows...
They must. From the spec:
The path MUST consist of a name in the rows list, a file separator (/), and a name from the columns list, in that order.
I get the following error:
[ERROR] Command errored: Open HCS Dataset...
java.lang.RuntimeException: Could not determine HCSPattern for W:\[redacted].zarr
at org.embl.mobie.lib.hcs.Plate.determineHCSPattern(Plate.java:298)
at org.embl.mobie.lib.hcs.Plate.<init>(Plate.java:90)
at org.embl.mobie.MoBIE.openHCSDataset(MoBIE.java:267)
at org.embl.mobie.MoBIE.<init>(MoBIE.java:170)
at org.embl.mobie.command.open.OpenHCSDatasetCommand.run(OpenHCSDatasetCommand.java:66)
at org.scijava.command.CommandModule.run(CommandModule.java:196)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:125)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:64)
at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:247)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
@imagejan any chance you could debug and fix this? It is very hard for me to do so without access to a Windows machine with IntelliJ.....
Hi,
I am running into an issue when I try to open an ome-zarr HCS plate from a windows machine. The same plate works fine from my Linux machine.
I get the following outputs:
Console
Exception
Log
Maybe it is the wrong
/
betweenB/03
?I can open individual wells (i.e. multiscale images) from this zarr.