Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#415 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
r

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
R
Stelle
20
Fork
8
Merge medio
23h 33m
PR unite (30g)
9

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nmfs-ost/stockplotr

Tutte le issue di nmfs-ost/stockplotr

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.