imagej / pyimagej

Use ImageJ from Python
https://pyimagej.readthedocs.io/
Other
474 stars 83 forks source link

Add ij.run_script signature that takes file paths #318

Open hinerm opened 4 weeks ago

hinerm commented 4 weeks ago

Instead of taking the full script text and language, we could just accept a fully qualified path, discern the language from the extension, and do

with open(script_path, "r") as f:
    script = "".join(f.readlines())

to avoid this boilerplate that is kind of annoying and feels unnecessary