Typos: shape -> known_shape
This commit is contained in:
parent
c21682ad84
commit
59adde5bd5
@ -22,7 +22,7 @@ class Colored_Noise():
|
||||
|
||||
def reset(self, random_state=None):
|
||||
self.samples = cn.powerlaw_psd_gaussian(
|
||||
self.beta, self.shape + (self.num_samples,), random_state=random_state)
|
||||
self.beta, self.known_shape + (self.num_samples,), random_state=random_state)
|
||||
|
||||
|
||||
class Pink_Noise(Colored_Noise):
|
||||
@ -101,7 +101,7 @@ class Perlin_Noise():
|
||||
def __call__(self, shape):
|
||||
self.index += 1
|
||||
return [self.noise([self.index*self.scale, self.magic*(a+1)]) / self.normal_factor
|
||||
for a in range(self.shape[-1])]
|
||||
for a in range(self.known_shape[-1])]
|
||||
|
||||
def reset(self):
|
||||
self.index = 0
|
||||
|
Loading…
Reference in New Issue
Block a user