PEtab-dev / libpetab-python

Python package for working with PEtab files
https://libpetab-python.readthedocs.io
MIT License
14 stars 6 forks source link

Python API for linter #35

Open yannikschaelte opened 3 years ago

yannikschaelte commented 3 years ago

A 1-line python API to the linter would be nice, basically calling petablint::main with arguments.

dweindl commented 3 years ago

So you don't want to provide your own PetabProblem? Otherwise petab.lint.lint_problem would do the job.

yannikschaelte commented 3 years ago

Yes, don't want to create the problem manually, i.e. instead of petab.lint.lint_problem(petab.PetabProblem.from_yaml('yaml_file.yaml')) petab.lint.lint_yaml('yaml_file.yaml') or sth like that. If I see correctly, the CLI additionally also validates the YAML first. Super low prio though ;)