PEtab-dev / PEtab-dev/libpetab-python
False positive invalid condition ID.
@dilpath ya está trabajando en esto.
Desde el 10/11/2020.
- Lenguaje dominante
- Python
- Estrellas
- 18
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.