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

remove redundant if clause

parent 067817dc
Pipeline #102974 passed with stages
in 13 minutes and 39 seconds
......@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain):
self._rdistances = _realdistances
else:
if distances is None:
if self._harmonic:
self._rdistances = tuple(1. / (np.array(self._shape)))
else:
self._rdistances = tuple(1./s for s in self._shape)
self._rdistances = tuple(1. / (np.array(self._shape)))
elif np.isscalar(distances):
if self.harmonic:
self._rdistances = tuple(
......
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