Skip to content

Improve on the method to retrieve simulation data from outside of OpenCOR#442

Merged
agarny merged 4 commits intoopencor:mainfrom
agarny:issue441
Mar 3, 2026
Merged

Improve on the method to retrieve simulation data from outside of OpenCOR#442
agarny merged 4 commits intoopencor:mainfrom
agarny:issue441

Conversation

@agarny
Copy link
Contributor

@agarny agarny commented Mar 3, 2026

Fixes #441.

Copilot AI review requested due to automatic review settings March 3, 2026 21:49
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

This PR expands the public “retrieve simulation data” API so callers outside of OpenCOR can request data for multiple model parameters in one call, returning both the retrieved data and any issues encountered (per #441).

Changes:

  • Update the exposed simulationData API across OpenCORContentsComponentSimulationExperimentView to accept string[] and return a { simulationData, issues } response object.
  • Add a new exported public type (IOpenCORSimulationData) to describe the response shape.
  • Update the sample usage and bump package versions / lockfiles.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/renderer/src/components/views/SimulationExperimentView.vue Aggregate simulation data retrieval for multiple parameters and return issues without rejecting.
src/renderer/src/components/OpenCOR.vue Expose the new multi-parameter simulationData method and response type at the public component boundary.
src/renderer/src/components/ContentsComponent.vue Forward the new simulationData(string[]) request through simulation-only mode, including retry behavior.
src/renderer/src/AppWithSimulationData.vue Update example usage to request multiple parameters at once and log issues.
src/renderer/index.ts Export the new IOpenCORSimulationData public interface.
src/renderer/package.json Version bump for the renderer package.
package.json Version bump and dev dependency patch update.
src/renderer/bun.lock Lockfile updates.
bun.lock Lockfile updates.

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

You can also share your feedback on Copilot code review. Take the survey.

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

Copilot reviewed 7 out of 10 changed files in this pull request and generated 1 comment.


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

You can also share your feedback on Copilot code review. Take the survey.

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

Copilot reviewed 7 out of 10 changed files in this pull request and generated 6 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

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

Copilot reviewed 9 out of 12 changed files in this pull request and generated 1 comment.


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

You can also share your feedback on Copilot code review. Take the survey.

@agarny agarny merged commit 3f82702 into opencor:main Mar 3, 2026
8 checks passed
@agarny agarny deleted the issue441 branch March 3, 2026 22:46
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.

Improve on the method to retrieve simulation data from outside of OpenCOR

2 participants