Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/SW_of_Roesslers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def small_world_network(number_of_nodes, nearest_neighbours, rewiring_probabilit
# parameters
# ----------

rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)
N = 500
ω = rng.uniform(0.8,1.0,N)
a = 0.165
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_compiled_function(f):
)


rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)

n, c, q = 100, 3.0, 0.2
A = rng.choice( [1,0], size=(n,n), p=[q,1-q] )
Expand Down
2 changes: 1 addition & 1 deletion examples/double_fhn_restricted_lyap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from jitcode import jitcode_restricted_lyap, y


rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)

a = -0.025794
b1 = 0.01
Expand Down
2 changes: 1 addition & 1 deletion examples/kuramoto_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from jitcode import jitcode, y


rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)

n = 100
c = 3.0
Expand Down
4 changes: 2 additions & 2 deletions tests/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def setUp(self):

class FurtherHelpersTests(unittest.TestCase):
def test_identity_of_jacs(self):
rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)
x = rng.random(n)

def evaluate(scenario):
Expand All @@ -83,7 +83,7 @@ def evaluate(scenario):
)

def test_identity_of_lyaps(self):
rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)
x = rng.random((n+1)*n)

def evaluate(scenario):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integrator_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from scenarios import n, vanilla, y0, y1


rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)

# Generating compiled functions

Expand Down
2 changes: 1 addition & 1 deletion tests/test_transversal_lyap.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from jitcode import jitcode_restricted_lyap, jitcode_transversal_lyap, y


rng = np.random.default_rng()
rng = np.random.default_rng(seed=42)

a = -0.025794
b = 0.01
Expand Down