Commit 5c84376d authored by Theo Steininger's avatar Theo Steininger

Added d2o.seed to test_power_synthesize_analyze

parent 790fb1fc
Pipeline #16556 failed with stage
in 6 minutes and 47 seconds
......@@ -35,8 +35,8 @@ setup(name="ift_nifty",
include_dirs=[numpy.get_include()],
dependency_links=[
'git+https://gitlab.mpcdf.mpg.de/ift/keepers.git#egg=keepers-0.3.7',
'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.0.8'],
install_requires=['keepers>=0.3.7', 'd2o>=1.0.8'],
'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.1.1'],
install_requires=['keepers>=0.3.7', 'd2o>=1.1.1'],
package_data={'nifty.demos': ['demo_faraday_map.npy'],
},
license="GPLv3",
......
......@@ -32,6 +32,7 @@ from nifty import Field,\
PowerSpace,\
nifty_configuration
import d2o
from d2o import distributed_data_object
from test.common import expand
......@@ -101,6 +102,8 @@ class Test_Functionality(unittest.TestCase):
def test_power_synthesize_analyze(self, space1, space2, base):
nifty_configuration['harmonic_rg_base'] = base
d2o.random.seed(11)
p1 = PowerSpace(space1)
spec1 = lambda k: 42/(1+k)**2
fp1 = Field(p1, val=spec1)
......
Markdown is supported
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