ImageD11.cImageD11 module#

ImageD11.cImageD11.array_bin(ary, inverse_step, nbins)#

Find integer bins for array reals from 0 to nbins and 1/step returns int( floor( ary * inverse_step ) ).clip(0,nbins-1)

ImageD11.cImageD11.array_lt(ary, cut, out)#

parallel ary < cut

ImageD11.cImageD11.check_multiprocessing(patch=False)#

I tried to suppress the “fork” method for multiprocessing, but I could not.

You cannot safely use os.fork together with threads. But the cImageD11 codes uses threads via openmp, and you are importing them. So please use forkserver or spawn for multiprocessing.

https://discuss.python.org/t/concerns-regarding-deprecation-of-fork-with-alive-threads/33555 FABLE-3DXRD/ImageD11#177

> Developers should respond by adjusting their use of multiprocessing or concurrent.futures > to explicitly specify either the “forkserver” or “spawn” start methods via a context.

ImageD11.cImageD11.cores_available()#

Return the number of CPU cores you can use First choice = os.sched_getaffinity Second choice = os.cpu_count (may be high) Third choice = os.environ[‘NUMBER_OF_PROCESSORS’] (windows+old) Fourth choice = multiprocessing.cpu_count (python 2 on linux/mac) Guess at 1 when os.cpu_count someone returns None or 0

ImageD11.cImageD11.fill_in_docstrings()#
ImageD11.cImageD11.fix_doc(oldstring, to_be_added)#

Adds a description of the function to the f2py string

ImageD11.cImageD11.parallel_zeros(shape, dtype)#

Like numpy.zeros but threaded

ImageD11.cImageD11.put_incr(*a, **k)#

redirects to put_incr64