Skip to content

Format integers for varying well name in run_batch_general #148

@fefossa

Description

@fefossa

Inside each function of run_batch_general.py the "Metadata_Well" is formatted with '%02d' but sometimes we have images from different microscopes where the well name would be A1 instead of A01.

I added a flag well_bool = False #True to A01, False to A1 and changed inside each function the '%02d' for well_format. And then added:

if well_bool:
    well_format = '%02d'
else:
    well_format = '%01d'

Probably would need to change that as well for Metadata_Site because I think some microscopes could also have sites = 1 or 01.

I'm not sure if that's the best place to add this functionality but worked for me.

run_batch_general_modified.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions