Without petab installed, objective = expression fails with a message about an 'expression observableFormula'

未关闭 适合新手
#1,045 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

从 pybnf/petab/formula.py 中的 _require_petab_math(第 57–60 行)开始,然后沿着 objective = expression 路径追踪其调用方。更新调用方,使错误信息指出该功能,同时保留安装解决方法,并检查两个依赖项最低版本的 CI 测试是否会生成更清晰的消息。

由索引模型根据 Issue 内容生成。

描述

bug minor

With the optional petab extra missing, a configuration with objective = expression fails with:

An expression observableFormula needs the PEtab math translator, which is the optional 'petab' extra.

The message comes from the shared _require_petab_math (pybnf/petab/formula.py:57-60). It names a PEtab observable feature, not the objective = expression the user wrote. The remedy it gives, installing pybnf[petab], is right.

It appeared on the dependency-floors CI leg, which installs no petab (#1028), for two tests that use objective = expression.

Fix: let the caller name the feature, so the message reads, for example, "objective = expression needs the PEtab math translator…".

主要语言
Python
星标
25
派生
25
平均合并
4 小时 5 分钟
30 天内合并 PR
10

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

lanl/PyBNF 的其他 Issue

查看 lanl/PyBNF 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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