Skip to content

Fold getToolboxVersion into exportForGit; report GECKO instead of COBRA#635

Merged
edkerk merged 2 commits into
develop3from
refactor/fold-gettoolboxversion
Jun 11, 2026
Merged

Fold getToolboxVersion into exportForGit; report GECKO instead of COBRA#635
edkerk merged 2 commits into
develop3from
refactor/fold-gettoolboxversion

Conversation

@edkerk

@edkerk edkerk commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

getToolboxVersion was used only by exportForGit (plus one test). It is folded in as a local subfunction, and the standalone io/getToolboxVersion.m (and its generated doc) is removed.

The dependency report in dependencies.txt is simplified:

  • RAVEN version is always reported (as before)
  • GECKO version is reported for enzyme-constrained models only (isfield(model,'ec')), located via GECKOInstaller.m
  • the COBRA Toolbox version is no longer reported

Test

The tIO test that previously called getToolboxVersion directly now exercises the embedded lookup through exportForGit, verifying a RAVEN_toolbox entry is written to dependencies.txt.

Verification

  • Normal model → dependencies.txt contains RAVEN_toolbox, no GECKO_toolbox, no COBRA line.
  • ec-model (model.ec present) → GECKO_toolbox line is written.
  • tIO passes (18/19; 1 filtered for missing pyyaml, 0 failures).

edkerk added 2 commits June 11, 2026 19:28
getToolboxVersion was only used by exportForGit, so it becomes a local
subfunction there and the standalone file (and its doc) are removed. The
dependency report now covers RAVEN and, for enzyme-constrained models
(those with an "ec" field), GECKO; the COBRA Toolbox version is no longer
reported. GECKO is located via GECKOInstaller.m.

The tIO test that called getToolboxVersion directly now checks that
exportForGit writes a RAVEN_toolbox entry to dependencies.txt instead.
Drop the git describe/commit-hash fallback in the folded getToolboxVersion:
the reported version now comes solely from the toolbox version.txt, and is
'unknown' when that file is absent (e.g. a development checkout between
releases).
@github-actions

Copy link
Copy Markdown

Function test results

191 tests   171 ✅  39s ⏱️
 21 suites   20 💤
  1 files      0 ❌

Results for commit 3f5f0e7.

@edkerk edkerk merged commit 4fa69ee into develop3 Jun 11, 2026
2 checks passed
@edkerk edkerk deleted the refactor/fold-gettoolboxversion branch June 11, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant