porespy.tools.get_edt#
- porespy.tools.get_edt()#
Return PoreSpy’s preferred Euclidean distance transform callable.
pyedt.edtis preferred when it is installed. Otherwise, the callable wrapsedt.edtand readsporespy.settings.ncoreseach time it is called. Consequently, changingsettings.ncoresaffects existing callables returned by this function. An explicitparallelkeyword at the call site takes precedence over the setting.Notes
The
pyedtAPI does not accept theparallelkeyword, so PoreSpy does not passsettings.ncoresto that backend. Parallel network extraction usingpyedthas its ownthreadsoption.