Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters processing can confuse parameters with similar name #7

Closed
javism opened this issue Mar 18, 2016 · 1 comment
Closed

Parameters processing can confuse parameters with similar name #7

javism opened this issue Mar 18, 2016 · 1 comment

Comments

@javism
Copy link
Contributor

javism commented Mar 18, 2016

Parameters processing can be unstable depending of the parameters name that the user choose. Now, if we have two different parameters algorithm and algorithmDefault any of them can be randomly choose to be assigned to obj.method. The issue comes from Experiment.m:

elseif strncmpi('algorithm',nueva_linea, 3),

Causes to compare only using the first lines. A quick fix can be to use length(), so that:

elseif strncmpi('algorithm',nueva_linea, length('algorithm')),

@javism javism mentioned this issue Dec 5, 2017
javism added a commit that referenced this issue Dec 5, 2017
@javism
Copy link
Contributor Author

javism commented Dec 5, 2017

Fixed with INI parser

@javism javism closed this as completed Dec 5, 2017
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

No branches or pull requests

1 participant