Skip to content

Generator profile: fix computeComputedConstants()'s signature#1364

Merged
hsorby merged 4 commits intocellml:mainfrom
agarny:issue1363
Mar 2, 2026
Merged

Generator profile: fix computeComputedConstants()'s signature#1364
hsorby merged 4 commits intocellml:mainfrom
agarny:issue1363

Conversation

@agarny
Copy link
Contributor

@agarny agarny commented Mar 1, 2026

Fixes #1363.

Copilot AI review requested due to automatic review settings March 1, 2026 23:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Generator profile so the generated computeComputedConstants() method has the correct (post-refactor) signature, and refreshes generated test resources/fixtures accordingly (Fixes #1363).

Changes:

  • Update C generator profile computeComputedConstants() interface/implementation strings to include double voi and rename the algebraic array parameter to algebraicVariables.
  • Update Python generator profile compute_computed_constants() signature to include voi and use algebraic_variables.
  • Regenerate/refresh test resources and update generator profile version strings + recorded profile SHA1s.

Reviewed changes

Copilot reviewed 233 out of 244 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/generatorprofile.cpp Updates default generator profile strings (C + Python) for computeComputedConstants() / compute_computed_constants() signatures and bumps default generated version strings.
src/generatorprofilesha1values.h Updates generated SHA1s for the generator profiles to match the new profile content.
tests/generator/generatorprofile.cpp Updates C++ unit test expectations for the new method signatures and version string.
tests/bindings/python/test_generator_profile.py Updates Python binding tests to expect the updated C method signatures and version string.
tests/resources/** Updates generated fixtures (C headers/implementations, Python models, and .out files) to match the new computeComputedConstants() signature and updated version strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny requested review from hsorby and nickerso March 2, 2026 01:43
hsorby
hsorby previously approved these changes Mar 2, 2026
nickerso
nickerso previously approved these changes Mar 2, 2026
Copy link
Contributor

@nickerso nickerso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual change seems ok, just left a comment on the .gitignore change...

@agarny agarny dismissed stale reviews from nickerso and hsorby via 95bae03 March 2, 2026 04:37
@agarny agarny requested review from hsorby and nickerso March 2, 2026 04:45
agarny added 3 commits March 2, 2026 17:58
… tests.

Needed as otherwise we (now!?) get various messages that read:

ENOENT: no such file or directory, open 'node:fs'
…FO` and `EXTERNAL_INFO` to `EXTERNAL_VARIABLE_INFO`.
nickerso
nickerso previously approved these changes Mar 2, 2026
@hsorby hsorby merged commit 387274c into cellml:main Mar 2, 2026
28 checks passed
@agarny agarny deleted the issue1363 branch March 2, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generator profile: fix computeComputedConstants()'s signature.

4 participants