Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

need warning and improved logic for generalized sizecomp

未关闭
#751 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@Rick-Methot-NOAA 已经在做这个了。

开始于 2026年2月2日。

评估

这个 Issue 还没有评估数据。

描述

composition in progress

A user configured a generalized sizecomp with narrow weight bins for the data. SS3 crashed without providing warning. The problem is that when the setup is using weight bins, a narrow population length bin can translate to weight range that is wider than the user-specified weight bins.
@N-DucharmeBarth-NOAA

The code is designed to detect where the population bin is completely within a data bin and assign all of that pop bin to the data bin, and to detect when there are multiple consecutive pop bins that fall within the same data bin range and assign all of them to that range. It also can detect when a pop bin stradles the upper edge of a data bin and apportion that pop bin to the current and nect data bin, then to correctly move on to the next pop bin.
However, the code cannot detect when the upper edge of a pop bin would skip over a data bin. When this happens, no warning is issued and a crash typically occurs.

  • minimum fix would be to provide a fatal warning in all such circumstances
  • best fix would be to develop an algorithm by which the code would apportion that wide population bin to a range of data bins. Surely such an algorithm has already been developed somewhere and we just need to know what to ask for.
主要语言
C++
星标
46
派生
19
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nmfs-ost/ss3-source-code 的其他 Issue

查看 nmfs-ost/ss3-source-code 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。