diff --git a/nifty/minimization/line_searching/line_search.py b/nifty/minimization/line_searching/line_search.py index 6debbc5d2c18dfedf644f70a715feda7296d0ead..93ede56af96a27ca4c0fd38c5bd4e730fd807f73 100644 --- a/nifty/minimization/line_searching/line_search.py +++ b/nifty/minimization/line_searching/line_search.py @@ -44,9 +44,6 @@ class LineSearch(Loggable, object): __metaclass__ = abc.ABCMeta def __init__(self): - - - self.line_energy = None self.f_k_minus_1 = None self.preferred_initial_step_size = None diff --git a/nifty/probing/prober/prober.py b/nifty/probing/prober/prober.py index b2f85f54335f2027bd50ab996c69d0979ae2a9e9..f292c495f047e4e376bd77d5c37e164ce289c3f5 100644 --- a/nifty/probing/prober/prober.py +++ b/nifty/probing/prober/prober.py @@ -37,7 +37,8 @@ class Prober(object): """ def __init__(self, domain=None, distribution_strategy=None, probe_count=8, - random_type='pm1', compute_variance=False): + random_type='pm1', probe_dtype=np.float, + compute_variance=False): self._domain = utilities.parse_domain(domain) self._distribution_strategy = \ @@ -45,6 +46,7 @@ class Prober(object): self._probe_count = self._parse_probe_count(probe_count) self._random_type = self._parse_random_type(random_type) self.compute_variance = bool(compute_variance) + self.probe_dtype = np.dtype(probe_dtype) # ---Properties--- @@ -104,6 +106,7 @@ class Prober(object): """ a random-probe generator """ f = Field.from_random(random_type=self.random_type, domain=self.domain, + dtype=self.probe_dtype, distribution_strategy=self.distribution_strategy) uid = np.random.randint(1e18) return (uid, f)