Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEtab lint requires indices #308

Open
PaulJonasJost opened this issue Sep 20, 2024 · 1 comment
Open

PEtab lint requires indices #308

PaulJonasJost opened this issue Sep 20, 2024 · 1 comment
Labels
question Further information is requested

Comments

@PaulJonasJost
Copy link
Collaborator

I noticed that petab_lint requires for some tables specific indices (see e.g. check_observables_df line 301). I was wondering whether there is a specific reason for this or whether one could relax this to the corresponding column (in the example case observableId).

@PaulJonasJost PaulJonasJost added the question Further information is requested label Sep 20, 2024
@PaulJonasJost PaulJonasJost changed the title PEtab lint requires indexes PEtab lint requires indices Sep 20, 2024
@dweindl
Copy link
Member

dweindl commented Sep 23, 2024

The reason is mostly that it's somewhat annoying to deal with different inputs in every function.
If you load a PEtab problem using Problem.from_yaml, the index will be set correctly. If you want to load individual tables, you can use the get_XXX_df() functions, which will do the same. You can pass either a path or an existing DataFrame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants