fitspy.utils_mp module
utilities functions related to multiprocessing
notes: The strategy (see commented lines below) of passing the models to the workers once instead of duplicating them for each spectrum turned out to be slightly
more costly in terms of CPU time finally (?).
- fitspy.utils_mp.fit(spectrum_)
Fitting function used in multiprocessing
- fitspy.utils_mp.initializer(queue_incr)
Initialize a global var shared btw the processes and the progressbar
- fitspy.utils_mp.fit_mp(spectra, ncpus, queue_incr)
Multiprocessing fit function applied to spectra