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

オープン
#470 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).

主要言語
R
スター
20
フォーク
10
平均マージ
3日 8時間
マージ済み PR(30日)
31

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nmfs-ost/stockplotr のほかの issue

nmfs-ost/stockplotr の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。