Commit b1bd9aae authored by Lukas Platz's avatar Lukas Platz
Browse files

remove redundant if clause

parent 067817dc
...@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain): ...@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain):
self._rdistances = _realdistances self._rdistances = _realdistances
else: else:
if distances is None: if distances is None:
if self._harmonic:
self._rdistances = tuple(1. / (np.array(self._shape))) self._rdistances = tuple(1. / (np.array(self._shape)))
self._rdistances = tuple(1./s for s in self._shape)
elif np.isscalar(distances): elif np.isscalar(distances):
if self.harmonic: if self.harmonic:
self._rdistances = tuple( self._rdistances = tuple(
Supports Markdown
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