From 322d7cec6dcf5435ecd577a4b9514321c78bbe0f Mon Sep 17 00:00:00 2001 From: Martin Reinecke <martin@mpa-garching.mpg.de> Date: Wed, 30 Jan 2019 09:11:40 +0100 Subject: [PATCH] unrelated fixes --- nifty5/operators/energy_operators.py | 1 - nifty5/operators/regridding_operator.py | 1 - 2 files changed, 2 deletions(-) diff --git a/nifty5/operators/energy_operators.py b/nifty5/operators/energy_operators.py index b57a5d299..9ce202463 100644 --- a/nifty5/operators/energy_operators.py +++ b/nifty5/operators/energy_operators.py @@ -261,7 +261,6 @@ class BernoulliEnergy(EnergyOperator): """ def __init__(self, d): - print(d.dtype) if not isinstance(d, Field) or not np.issubdtype(d.dtype, np.integer): raise TypeError if not np.all(np.logical_or(d.local_data == 0, d.local_data == 1)): diff --git a/nifty5/operators/regridding_operator.py b/nifty5/operators/regridding_operator.py index a5531be9a..a44a58883 100644 --- a/nifty5/operators/regridding_operator.py +++ b/nifty5/operators/regridding_operator.py @@ -47,7 +47,6 @@ class RegriddingOperator(LinearOperator): if not isinstance(dom, RGSpace): raise TypeError("RGSpace required") if len(new_shape) != len(dom.shape): - print(new_shape, dom.shape) raise ValueError("Shape mismatch") if any([a > b for a, b in zip(new_shape, dom.shape)]): raise ValueError("New shape must not be larger than old shape") -- GitLab