Skip to content

cli_tag if None, doesn't ignore that in cli_command construction : Jupyter Interface #77

@rajavishah

Description

@rajavishah

Describe the bug

For output folder construction, if no flag is available and you are using a dummy one with cli_tag : None breaks in Jupyter Notebook interface.

It should ignore the cli_tag argument pair itself!

Have you searched existing issues?

  • I have searched and found no existing issues

Reproduction

n/a

Screenshot

No response

Logs/StackTrace

Logs

Traceback (most recent call last):
  File "/tmp/ipykernel_157/3047536816.py", line 9, in <module>
    res = subprocess.run(cli_command.value, shell=True, check=True, stdout=None, stderr=subprocess.PIPE)
  File "/instanseg/.pixi/envs/cpuenv/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python /instanseg/instanseg/scripts/inference.py --image_path input_images --model_folder brightfield_nuclei --device cpu --pixel_size 0.5 --recursive False --ignore_segmented False None /bilayers/input_images --tile_size 512 --batch_size 1 --save_geojson False' returned non-zero exit status 2.

Bilayers Version

0.1

System Info

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions