TheJacksonLaboratory / ezomero

A module with convenience functions for writing Python code that interacts with OMERO.
GNU General Public License v2.0
39 stars 13 forks source link

[BUG] `ezimport` cannot move/annotate imports on certain `clientPath`s #55

Closed erickmartins closed 2 years ago

erickmartins commented 2 years ago

Describe the bug ezimport fails to find image IDs for any imports where clientPath contains a certain set of characters.

To Reproduce Importing any image from a path containing any characters from the set "*/:<>? \ | results in orphaned and un-annotated images.

Expected behavior When matching local path to server clientPath, local path needs to have the same transforms applied as the ones made by blitz.

Affects ezomero version 1.1.0, all OSs (in particular, affects all imports from Windows due to paths containing :).

erickmartins commented 2 years ago

In addition to that, is seems like clientPaths from Windows imports will also be saved server-side with "/" separators regardless - so replacing "\" separators from the local path is also necessary.

erickmartins commented 2 years ago

Fixed in #56 (I think).