job_type = ms silently drops an atol=>/rtol=> that is not a plain number, and no path refuses a negative or non-finite atol
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
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Read _run_kwargs in pybnf/shooting/net_backend.py and compare its tolerance handling with _eval_numeric in net_model.py:1755; also inspect segment.py:125 for the other path. Add coverage for expression tolerances and negative or non-finite atol values. Done means multiple shooting evaluates tolerances consistently and invalid atol values are rejected with the action named.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Multiple shooting drops a tolerance it cannot parse. In job_type = ms, _run_kwargs (pybnf/shooting/net_backend.py:253-258) calls float() on each tolerance:
for key in ('atol', 'rtol'):
if key in self.sim_params:
try:
kwargs[key] = float(self.sim_params[key])
except (TypeError, ValueError):
pass
The ordinary .net path evaluates the same value with _eval_numeric (net_model.py:1755). So an expression tolerance such as atol=>1e-6/10 is honoured by a fit and silently dropped by multiple shooting, which then integrates at bngsim's default.
No path checks a bad atol. PyBNF does not check a negative or non-finite atol on any path (net_model.py:1755, segment.py:125, net_backend.py). What happens is up to bngsim.
#1018 fixed both of these. It was closed for an unrelated reason (it also wrapped tolerances in ExactAtol, which was not wanted), so the fixes did not land.
Fix: evaluate the tolerance as the ordinary path does, and refuse a value that is not a finite number ≥ 0, naming the action.
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lanl/PyBNF
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug silent-incorrectness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
software-mansion-labs/Diplomat#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaCó thể đã có người làm @lijy91 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
View Counts discarded due to field name mismatchCó thể đã có người làm @rsiva0400 đã nhận hôm nay. Đang mởsite-bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Model version publishes the new UK firm entity as a personCó thể đã có người làm @vahid-ahmadi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/policyengine.py#764 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
spcl/HPCAgent-Bench#264 ·
Maintainer thường phản hồi trong vòng 1 ngày