Commit 03bd7f7a authored by Philipp Arras's avatar Philipp Arras
Browse files

nifty6 -> nifty7

parent 744ce661
Pipeline #76391 passed with stages
in 11 minutes and 51 seconds
......@@ -41,7 +41,7 @@ def NormalTransform(mean, sigma, key, N_copies=0):
N_copies : integer
If == 0, target will be a scalar field.
If >= 1, target will be an
:class:`~nifty6.unstructured_domain.UnstructuredDomain`.
:class:`~nifty7.unstructured_domain.UnstructuredDomain`.
"""
if N_copies == 0:
domain = DomainTuple.scalar_domain()
......@@ -71,7 +71,7 @@ def LognormalTransform(mean, sigma, key, N_copies):
N_copies : integer
If == 0, target will be a scalar field.
If >= 1, target will be an
:class:`~nifty6.unstructured_domain.UnstructuredDomain`.
:class:`~nifty7.unstructured_domain.UnstructuredDomain`.
"""
logmean, logsigma = lognormal_moments(mean, sigma, N_copies)
return NormalTransform(logmean, logsigma, key, N_copies).ptw("exp")
......@@ -395,7 +395,7 @@ def lognormal_moments(mean, sigma, N=0):
"""Calculates the parameters for a normal distribution `n(x)`
such that `exp(n)(x)` has the mean and standard deviation given.
Used in :func:`~nifty6.normal_operators.LognormalTransform`."""
Used in :func:`~nifty7.normal_operators.LognormalTransform`."""
mean, sigma = (value_reshaper(param, N) for param in (mean, sigma))
if not np.all(mean > 0):
raise ValueError("mean must be greater 0; got {!r}".format(mean))
......
......@@ -18,7 +18,7 @@
import pytest
from numpy.testing import assert_allclose
import nifty6 as ift
import nifty7 as ift
from ..common import setup_function, teardown_function
......
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