Skip to content

Commit 6fb0e9e

Browse files
committed
try fix tests
1 parent 69f2527 commit 6fb0e9e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
torch>=1.7
12
numpy>=1.16.4
2-
torchplot
33
networkx

stochman/curves.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def plot(
8181
8282
"""
8383
with torch.no_grad():
84-
import torchplot as plt
85-
84+
import matplotlib.pyplot as plt
8685
t = torch.linspace(t0, t1, N, dtype=self.begin.dtype, device=self.device)
8786
points = self(t) # NxD or BxNxD
8887

tests/test_curves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_plotting_in_axis(self, curve_class):
122122
end = torch.randn(batch_size, dim)
123123
c = curve_class(begin, end, 20)
124124
try:
125-
import torchplot as plt
125+
import matplotlib.pyplot as plt
126126

127127
fig, ax = plt.subplots(1, 1)
128128
c.plot(ax=ax)

0 commit comments

Comments
 (0)