Commit e9638875 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

better names

parent d82f28b2
Pipeline #70988 failed with stages
in 4 minutes and 39 seconds
......@@ -46,7 +46,7 @@ def make_random_mask():
if __name__ == '__main__':
ift.random.init(42)
ift.random.seed(42)
# Choose space on which the signal field is defined
if len(sys.argv) == 2:
......
......@@ -19,14 +19,14 @@ import numpy as np
_initialized = False
def init(seed):
def seed(_seed):
global _initialized
if _initialized:
print("WARNING: re-intializing random generator")
np.random.seed(seed)
# print("WARNING: re-intializing random generator")
np.random.seed(_seed)
else:
_initialized = True
np.random.seed(seed)
np.random.seed(_seed)
def pm1(dtype, shape):
global _initialized
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment