Skip to content

imc view fails with multiple tiffs with matplotlib backend #19

Description

@matt-sd-watson

Using imc view $TIFFS on Linux:

Starting viewers for 7 files: 
	- processed/S17-745424II/tiffs/S17-745424II-01_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-02_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-03_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-04_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-05_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-06_full.tiff
	- processed/S17-745424II/tiffs/S17-745424II-07_full.tiff!
Press 'w' and 's' to scroll through image channels. 'l' to toggle logarithmic transformation.
Traceback (most recent call last):
  File "/home/admin/anaconda3/envs/imc_elemento/bin/imc", line 7, in <module>
    sys.exit(main())
  File "/home/admin/anaconda3/envs/imc_elemento/lib/python3.9/site-packages/imc/cli.py", line 35, in main
    return eval(main_args.command)(cmd_args)
  File "/home/admin/anaconda3/envs/imc_elemento/lib/python3.9/site-packages/imc/scripts/view.py", line 70, in main
    view.fig.show()
  File "/home/admin/anaconda3/envs/imc_elemento/lib/python3.9/site-packages/matplotlib/figure.py", line 2739, in show
    self.canvas.manager.show()
  File "/home/admin/anaconda3/envs/imc_elemento/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 550, in show
    self.window.protocol("WM_DELETE_WINDOW", destroy)
  File "/home/admin/anaconda3/envs/imc_elemento/lib/python3.9/tkinter/__init__.py", line 2197, in wm_protocol
    return self.tk.call(
_tkinter.TclError: can't invoke "wm" command: application has been destroyed

Activity

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

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