Skip to content

Import continues with incorrect input  #929

@HenkMutsaerts

Description

@HenkMutsaerts

Description

If sourceStructure's folderHierarchy is wrongly defined, this gives several warnings and errors but unclear to the user that the sourceStructure was wrong or no files were found. The problem is that it doesn't crash when no files are found, but continues, and crashes with confusing other warnings.

image

Requirements

Solution is probably to let the import module crash if no files were found, i.e. replacing the warning on xASL_imp_ReadSourceData (line 47) by an error.

How to test

Run ExploreASL('path2datasetRoot',[1 0 0 0], 0); with incorrect sourceStructure or no image data in `/datasetRoot/sourcedata/'.

Release notes

Import module crashes if no files were found.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions