Skip to content

Adds script to generate tutorial example data#302

Merged
StephenNneji merged 2 commits intoRascalSoftware:masterfrom
StephenNneji:add_script_for_tutorial
Jan 7, 2025
Merged

Adds script to generate tutorial example data#302
StephenNneji merged 2 commits intoRascalSoftware:masterfrom
StephenNneji:add_script_for_tutorial

Conversation

@StephenNneji
Copy link
Collaborator

@StephenNneji StephenNneji commented Jan 2, 2025

Add script to generate twoContrastExample.mat and add test to check it is up to data

@StephenNneji StephenNneji force-pushed the add_script_for_tutorial branch from e26a410 to 0c9992d Compare January 2, 2025 17:02
problem2 = load('twoContrastExample.mat');
problem2 = problem2.problem;
testCase.verifyEqual(problem1, problem2, 'twoContrastExample is not correctly updated');
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if this test fails after the evalc, and is then re-run. Presumerably, the problem saved to twoContrastExample.mat is incorrect and the test will always fail?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The original 'twoContrastExample.mat' is never changed as the test is run in a temp directory

@StephenNneji StephenNneji merged commit 1651dc0 into RascalSoftware:master Jan 7, 2025
5 checks passed
@StephenNneji StephenNneji deleted the add_script_for_tutorial branch February 21, 2025 14:58
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.

2 participants