Page 1 of 1

6.0.0-dev.26 doesn't ignore Method if LiouvMethod also exists

Posted: Tue Oct 13, 2020 10:05 am
by ThomasMCasey

I have a function within an app that simulates and convolutes multiple spectra using a loop where it is possible to specify any combination of 'garlic', 'chili', or 'pepper' over the iterations. In 5.2.28, when the first iteration puts Method into Opt and uses garlic or pepper, then the second iteration adds LiouvMethod and uses chili, Opt.Method is ignored by chili. In dev6.0.0-dev.26 I get the error that Method is not allowed for chili, even though LiouvMethod is also in Opt. Is this an intentional change in v6? I can reproduce this by adding Opt.Method and Opt.LiouvMethod (and adding Opt as an argument in the function calls) to the example "slow_fast.m".


Re: 6.0.0-dev.26 doesn't ignore Method if LiouvMethod also exists

Posted: Thu Oct 15, 2020 4:59 pm
by Stefan Stoll

This was in place to prevent users from calling chiliwith Opt.Method, which was the previous name for the Opt.LiouvMethod field. It's probably no longer needed. This is now changed and will be available with the next 6.0.0-dev release. Thanks for reporting!