[Bug]: `ref_line="unfished"` not working with ` plot_spawning_biomass` with `example_data`

Đang mở
#470 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
r
Lĩnh vực
data-visualization

Hướng nghiên cứu

Start by tracing how plot_spawning_biomass handles ref_line="unfished" and how convert_output maps SSB_virgin and SSB_unfished for SS3 models, especially in the DERIVED_QUANTITIES module. Compare the duplicate spawning_biomass_unfished entries in example_data and check related plotting tests. Done means the unfished reference line appears as expected without conflating quantities that may differ in complex models.

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

Mô tả

bug
Describe the bug

When running plot_spawning_biomass(example_data, ref_line="unfished"), no unfished reference point is added to the ensuing plot (note that the function does NOT throw an error, it just doesn't plot the expected reference).

Describe how to reproduce the bug

No response

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which version of stockplotr are you seeing the problem on?

No response

Additional Context

From some sleuthing, this is due to there being multiple entries of "spawning_biomass_unfished" in the example_data dataset (at least for the "DERIVED_QUANTITIES" module name). convert_output is mapping both "SSB_virgin" and "SSB_unfished" to the label "spawning_biomass_unfished" for SS3 models. It is debatable whether these quantities SHOULD be interpreted as the same (they have the same estimated value in the example_data, though different uncertainties, and the SS3 manual notes that they may differ for complex models with time varying parameters).

Ngôn ngữ chính
R
Star
20
Fork
10
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
31

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 nmfs-ost/stockplotr

Tất cả issue của nmfs-ost/stockplotr

Issue tương tự

Thêm issue về R

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.