Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
viljarjf committed Apr 9, 2024
1 parent 411a9f1 commit 3dadea1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyxem/utils/calibration.py
Expand Up @@ -293,7 +293,13 @@ def _get_radial_range(self, radial_range=None):
if radial_range is None:
from itertools import combinations

edges = np.reshape([[ax.min() ** 2, (ax.max() + scale) ** 2] for ax, scale in zip(self.axes, self.scale)], -1)
edges = np.reshape(
[
[ax.min() ** 2, (ax.max() + scale) ** 2]
for ax, scale in zip(self.axes, self.scale)
],
-1,
)
max_range = np.max(
np.power(np.sum(list(combinations(edges, 2)), axis=1), 0.5)
)
Expand Down

0 comments on commit 3dadea1

Please sign in to comment.