R-Lum/Luminescence

analyse_IRSAR.RF: 'cores' argument not working as expected

Closed this issue · 3 comments

The argument cores in method.control is not working properly. When using a numeric argument, e.g, cores = 3, always all cores of the machine are used. Simple example on my machine:

data(ExampleData.RLum.Analysis, envir = environment())
analyse_IRSAR.RF(object = IRSAR.RF.Data,
                                 method = "SLIDE",
                                 method.control = list(cores = 2))

[analyse_IRSAR.RF()] Multicore mode using 4 cores...

Using cores = "auto" works as expected: #cores - 2

[analyse_IRSAR.RF()] Multicore mode using 2 cores...

Could not reproduce this behaviour ... for me it works as expected. Can you please check whether this is an Ubuntu releated issue?

With the current developer version it seems to work but not with the one on CRAN (0.7.5) ...
I do not understand why because there was no change in this part of the code since 2017-06-30 (release of 0.7.5) but now with 0.8.0 it seems to work ...

Ok, I consider it as fixed.