Commit 067817dc by Martin Reinecke

### tweaks

parent f94e696d
Pipeline #102735 passed with stages
in 14 minutes and 15 seconds
 ... @@ -11,7 +11,7 @@ ... @@ -11,7 +11,7 @@ # You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License # along with this program. If not, see . # along with this program. If not, see . # # # Copyright(C) 2013-2020 Max-Planck-Society # Copyright(C) 2013-2021 Max-Planck-Society # # # NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik. # NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik. ... @@ -77,6 +77,8 @@ class RGSpace(StructuredDomain): ... @@ -77,6 +77,8 @@ class RGSpace(StructuredDomain): if self._harmonic: if self._harmonic: temp = 1. / (np.array(self._shape) * temp) temp = 1. / (np.array(self._shape) * temp) self._rdistances = tuple(temp) self._rdistances = tuple(temp) self._hdistances = tuple( 1. / (np.array(self.shape)*np.array(self._rdistances))) if min(self._rdistances) <= 0: if min(self._rdistances) <= 0: raise ValueError('Non-positive distances encountered') raise ValueError('Non-positive distances encountered') ... @@ -220,7 +222,4 @@ class RGSpace(StructuredDomain): ... @@ -220,7 +222,4 @@ class RGSpace(StructuredDomain): The n-th entry of the tuple is the distance between neighboring The n-th entry of the tuple is the distance between neighboring grid points along the n-th dimension. grid points along the n-th dimension. """ """ if self._harmonic: return self._hdistances if self._harmonic else self._rdistances return tuple(1. / (np.array(self.shape)*np.array(self._rdistances))) else: return self._rdistances
 ... @@ -11,7 +11,7 @@ ... @@ -11,7 +11,7 @@ # You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License # along with this program. If not, see . # along with this program. If not, see . # # # Copyright(C) 2013-2019 Max-Planck-Society # Copyright(C) 2013-2021 Max-Planck-Society # # # NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik. # NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik. ... ...
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