Most example configs do not load as written: 361 hard-code bng_command to the original author's machine and 280 MSA configs have a comma in output_dir

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
devtools, testing

Hướng nghiên cứu

Start with the bng_command lines in examples/COVID19forecasting_aMCMC/WindyCity/m3.conf and the comma-containing output_dir lines in examples/Mallela2022MSAs/. Run the config loader on one file from its own folder to reproduce the BNG2.pl and output_dir errors. Remove the bng_command lines, fix the output_dir and model = values, then find the four remaining failing configs (three Degranulation configs and one nested Louisville model path). Done when a new test that loads every examples/**/.conf from its own folder passes, with BNG2.pl required.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Most of the example configs under examples/ cannot be loaded as written, on any machine but the one each was written on. Measured on main (68fb0d1d), with find examples -name '*.conf' giving 553 configs:

  1. 361 set bng_command to a path on the original author's machine.

    • 335 use bng_command = /usr/local/anaconda3/bin/BNG2.pl.
    • 26 use bng_command = /projects/posner_lab/BioNetGen-2.3.1/BNG2.pl.

    An explicit bng_command overrides BNGPATH, so each of these stops at load with "The BioNetGen simulator (BNG2.pl) was not found at the specified location". That's right for a user's own config, since a wrong explicit path should not be silently replaced, but it makes the examples unusable as shipped. Example: examples/COVID19forecasting_aMCMC/WindyCity/m3.conf.

  2. 280 (examples/Mallela2022MSAs/*) have a comma in output_dir. For example, output_dir = Akron, OH_output is refused by the parser: "output_dir should be specified in the format 'output_dir=s'". These also carry the bng_command above.

  3. 4 fail for other reasons: three Degranulation configs list their data files separated by spaces on the model = line, and one has a nested Louisville model path.

With bng_command and output_dir neutralized and each config loaded from its own folder, 549 of 553 load (the independent review of #1001 ran this sweep). So items 1 and 2 account for nearly every failure.

Expected

  • Remove the bng_command lines. BNGPATH, or bngsim under bngl_backend = auto, covers them.
  • Give the MSA examples output_dir values without commas, and check their model = lines too, since commas there also separate data files.
  • Fix the four remaining configs.
  • Add a test that loads every examples/**/*.conf from its own folder (BNG2.pl may be required), so the examples cannot drift again. The #994 and #1001 reviews each wrote such a sweep in their probes, so it could be lifted from there.
Ngôn ngữ chính
Python
Star
25
Fork
25
Merge trung bình
4 giờ 5 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

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.

Issue khác của lanl/PyBNF

Tất cả issue của lanl/PyBNF

Issue tương tự

Thêm issue về Python

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.