populse / capsul

Collaborative Analysis Platform : Simple, Unifying, Lean
Other
7 stars 14 forks source link

Allow loading JSON pipelines as Python package resources #246

Closed ylep closed 2 years ago

ylep commented 2 years ago

This addition allows to incorporate .json files containing custom pipeline definitions into a Python package. This is similar to the .xml pipelines that could be defined and imported in Capsul v2.

ylep commented 2 years ago

One thing to note: with this implementation I used importlib.resources, which is only available on Python 3.7 and later. This is probably not an issue, since we are aiming for the casa-run-5.3 image that has Python 3.10?