Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[bug]: plot_abundance_at_age allows selection of non age-based modules

Đang mở
#415 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
1-2 ngày
Mức phù hợp với người mới
40/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 with plot_abundance_at_age and the filter_data step it calls, and see how the module is picked from the shared "abundance" label. Reproduce the error by selecting NUMBERS_AT_LENGTH or SPR_SERIES. Done means the function only offers modules that work with age-based plots, or it fails with a clear message. The maintainer has not chosen a fix, so confirm the approach in the thread before coding.

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

Mô tả

The plot_abundance_at_age function currently identifies data based on the "abundance" label. However, many models reuse this label across modules, including "NUMBERS_AT_AGE", "NUMBERS_AT_LENGTH", "SPR_SERIES", "TIME_SERIES", etc. The default behavior of filter_data allows for user selection of which module to use for plotting, but some of these modules will throw errors if selected (e.g., "NUMBERS_AT_LENGTH").

This seems like it could be readily confusing for many users. It would probably be a good idea to restrict the allowable modules for users to select to only those that are applicable to the plotting function being used ("NUMBERS_AT_AGE" in this case).

This issue likely applies to more cases than the one identified here, and I am not confident as to a solution, but wanted to point it out.

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

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.