Skip to content
Snippets Groups Projects

Adopt to new nifty version

Merged Philipp Arras requested to merge nifty into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -5,6 +5,7 @@
@@ -5,6 +5,7 @@
from functools import reduce
from functools import reduce
from operator import add
from operator import add
from types import GeneratorType
from types import GeneratorType
 
from mpi4py import MPI
import numpy as np
import numpy as np
@@ -128,5 +129,5 @@ def test_mpi_adder():
@@ -128,5 +129,5 @@ def test_mpi_adder():
mini_results = []
mini_results = []
for ham in hams_for_sampling:
for ham in hams_for_sampling:
with ift.random.Context(42):
with ift.random.Context(42):
mini_results.append(mini(ift.SampledKLEnergy(pos, ham, 3, None))[0].position)
mini_results.append(mini(ift.SampledKLEnergy(pos, ham, 3, None, comm=MPI.COMM_SELF))[0].position)
allclose(mini_results)
allclose(mini_results)
Loading