Skip to content

Commit

Permalink
Fixed coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Clancy97 authored and Pseudomanifold committed Dec 12, 2023
1 parent 25aa9e3 commit 5426f42
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions torch_topological/data/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,9 @@ def sample_from_torus(n, d=3, r=1.0, R=2.0, seed=None):
Tensor of sampled coordinates.
"""
if r > R:
raise RuntimeError(
'Radius of the tube must be less than or equal to radius of the torus'
)
raise RuntimeError('Radius of the tube must be less than ' +
'or equal to radius of the torus')


rng = np.random.default_rng(seed)
angles = []

Expand Down

0 comments on commit 5426f42

Please # to comment.