

@staticmethod
def _calculate(seed, width, height):
    rng = numpy.random.RandomState(seed)
    base = rng.randint(0, 4096)
    perm = numpy.zeros((height, width), dtype=float)
    octaves = 6
    freq = (64.0 * octaves)
    for y in range(0, height):
        for x in range(0, width):
            n = snoise2((x / freq), (y / freq), octaves, base=base)
            base[(y, x)] = n
    return perm

dataset/ETHPy150Open Mindwerks/worldengine/worldengine/simulations/permeability.py PermeabilitySimulation._calculate/VarMisuse@115/126 `perm`->`base`