Skip to content

Bug: input checking gives misleading message #15

@cldonovan

Description

@cldonovan

What Happened?

If a user specifies a medium.alpha_coeff that contains imaginary components, the error message received is medium.alpha_power must be a real number between 0 and 3. This is due to a typo in kspaceFirstOrder_inputChecking.m on line 216.

Appears the code should read if ~isreal(medium.alpha_power) || (medium.alpha_power >= 3 || medium.alpha_power < 0) instead of if ~isreal(medium.alpha_coeff) || (medium.alpha_power >= 3 || medium.alpha_power < 0)

Error messages

medium.alpha_power must be a real number between 0 and 3

How Can We Reproduce?

Run any example code, setting medium.alpha_coeff equal to a complex value or matrix.

Operating System

Windows

Release Version

1.4 (Default)

MATLAB Version

r2019b

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions