Skip to content

Conversation

@maartenhammer
Copy link
Contributor

Closes #1326

The added bTesting parameter in flavor.json is now used to check if a flavor needs testing.

How to test

Run Testing/xASL_test_Flavors.m

Comments

I replaced a filesystem search with a check from flavors.json.
Which means if a file is renamed in filesystem, but not in flavors.json it will not run in test_Flavors.m.
This can be fixed by adding the following check:
First a filesystem check xASL_adm_GetFileList(testConfig.pathFlavorDatabase, [], false, [], true);
Then a json read from the flavors.json with associated btesting value.
If both exists and btesting=true, then add it to a to be tested flavor
If flavor exists in either flavor.json or filesystem but not both throw a warning/error pointing the user to check it out, as this means either Flavor.json is incomplete, or the FlavorDatabase is incomplete.

@maartenhammer maartenhammer requested a review from jan-petr March 1, 2023 14:20
@jan-petr jan-petr linked an issue Mar 1, 2023 that may be closed by this pull request
1 task
Copy link
Contributor

@jan-petr jan-petr left a comment

Choose a reason for hiding this comment

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

OK.

Copy link
Contributor

@jan-petr jan-petr left a comment

Choose a reason for hiding this comment

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

OK to merge

@maartenhammer maartenhammer force-pushed the bug-#1326-Flavor-Crash branch from 71f79ca to 437ccff Compare March 3, 2023 14:06
@maartenhammer maartenhammer merged commit 437ccff into develop Mar 3, 2023
@maartenhammer maartenhammer deleted the bug-#1326-Flavor-Crash branch March 3, 2023 14:10
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.

Flavor Test currently crashes at SIEMENS_PASL_2DEPI_VB15A_ADNI2_941_S_4764_1

3 participants