PEtab-dev / PEtab-dev/libpetab-python

False positive invalid condition ID.

Đang mở
#366 6 bình luận 0 reaction 1 người được giao Xem trên GitHub

@dilpath đang làm issue này rồi.

Từ ngày 10/11/2020.

Ngôn ngữ chính
Python
Star
18
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.