PEtab-dev / PEtab-dev/libpetab-python
False positive invalid condition ID.
@dilpath já está trabalhando nisso.
Desde 10/11/2020.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 9
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Which problem would you like to address? Please describe.
Linting complains about invalid condition IDs. I believe the error is due to the fact that the condition id is numeric only. Ideally the error would be a bit more informative what the actual issue is with the condition ID.
Describe the solution you would like
Change the spec to be more accurate about identifier restrictions or change linting to be more permissive about identifiers.
Describe alternatives you have considered
Don't use numbers in identifiers.
Additional context
Can be checked via check_condition_df(pd.DataFrame({petab.CONDITION_ID: ['0']}).set_index(petab.CONDITION_ID), None).
Not sure how much sense it makes to print line numbers when operating with a DataFrame.
Typehints in check_condition_df are inconsistent with the function signature, i.e., sbml_model is not and optional argument.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Avaliação
Esta issue ainda não foi avaliada.