upxo.algorithms.alg201 module

2D Monte-Carlo Potts kernel ALG-201 (dashboard mcalg = 201 / 201.0).

Variant of the 2D MC loop that accepts ``rsfso`` (second-order neighbour radius scale) from mcgs.simulate(rsfso=...). Invoked from mcgs.start_algo2d_without_hops.

Public driver: run(...) — writes temporal mcgs2_grain_structure slices.

upxo.algorithms.alg201.unique_with_counts(arr)

This is because, current numba is incompatible with the return_counts argument in np.unique.

upxo.algorithms.alg201.mcloop_alg201(cbp, sbp, S, AIA0, AIA1, NLM, rsfso)

Mcloop alg201.

upxo.algorithms.alg201.run(uisim, uiint, uidata, uigrid, rsfso, xgr, ygr, zgr, px_size, _a, _b, _c, S, AIA0, AIA1, display_messages)[source]

Run.