Skip to content

Unexpected behaviors in omerotools: parse_url and upload_image_to_omero #154

Open

Description

@loicsauteur

Hi all

while testing your OMERO_batch_projection.py script I noticed:

parse_url:

  1. Lines 113-117 should be removed (they do not do anything)

image_ids = (
[s.split("%")[0].replace("|", "") for s in omero_str.split("image-")[1:]]
if "image-" in omero_str
else omero_str.split(",")
)

  1. Does not work with plain dataset ID. Running on dataset IDs results in an error.This would require checking if the supplied ID (e.g. 12345) is a Dataset, Project, or Image.

upload_image_to_omero:

It would be nice if it would check if the path exists and if not: raise a FileNotFoundError.

I can do a PR if you like, let me know!

Activity

  1. self-assigned this
    on Sep 16, 2026
  2. ehrenfeu commented on Sep 16, 2026

    @ehrenfeu
    Member

    Hi Loïc,

    thanks for the report. I have edited your comment above to link to the respective functions and code blocks. Could you double-check this is correct, i.e. is what you meant please?

    🤗

    Thanks,
    Niko

  3. added
    bugSomething isn't working
    enhancementNew feature or request
    changelogNeeds to be mentioned in release changelogs
    on Sep 16, 2026
  4. added theissue type on Sep 16, 2026
  5. moved this to Ready in IMCF-Fijion Sep 16, 2026
  6. moved this from Ready to In progress in IMCF-Fijion Sep 16, 2026
  7. added this to the 2.0.0 milestone on Sep 16, 2026
  8. modified the milestones: 2.0.0, 2.1.0 on Sep 21, 2026
  9. ehrenfeu commented on Sep 24, 2026

    @ehrenfeu
    Member

    Could you double-check this is correct, i.e. is what you meant please?

    Ping @loicsauteur

  10. loicsauteur commented on Sep 28, 2026

    @loicsauteur
    Author

    Hi @ehrenfeu & @rohangirishrao

    Yes, correct. Thanks for updating & sorry for the delayed answer.

  11. ehrenfeu commented on Sep 28, 2026

    @ehrenfeu
    Member

    Thanks, @loicsauteur

  12. ehrenfeu commented on Oct 8, 2026

    @ehrenfeu
    Member

    @loicsauteur: If you like, go ahead an provide a PR please! 🚀

  13. lguerard commented on Oct 12, 2026

    @lguerard
    Contributor

    Lines 113-117 should be removed (they do not do anything)

    Not sure that this is true. This splits the string passed by the user and

  14. loicsauteur commented on Oct 12, 2026

    @loicsauteur
    Author

    Hi @lguerard

    I described a bit clearer in #157 (comment).

    This is taken care of in the elif before.

    • if it's just IDs separated by commas then it makes an array

    Yes, it is only for comma-separated IDs.

  15. lguerard commented on Oct 12, 2026

    @lguerard
    Contributor

    Ahh true, I checked the original code and indeed there was redundancy, thanks for spotting it ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingchangelogNeeds to be mentioned in release changelogsenhancementNew feature or request

Type

Projects

  • Status
    In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions