clEsperanto / napari_pyclesperanto_assistant

GPU-accelerated general purpose image processing and image analysis in napari
http://clesperanto.net
BSD 3-Clause "New" or "Revised" License
32 stars 9 forks source link

Add workflow export #44

Closed jo-mueller closed 2 years ago

jo-mueller commented 2 years ago

Hi @cryaaa @haesleinhuepf

I added a export workflow to file action to the context menu Generate code in the Assistant.

It calls a function to_file(self, filename=None) and saves the generated workflow to a yaml file with save_workflow() from napari_workflows/_io_yaml_v1.py

Let me know what you think!