Skip to content

Commit

Permalink
fix(test): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
plechowicz committed Oct 10, 2024
1 parent af9fc89 commit ddc818c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traffic_weaver/weaver.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def smooth(self, s):
>>> import numpy as np
>>> from traffic_weaver.weaver import Weaver
>>> x = np.linspace(5, 15, 11)
>>> y = np.concat([np.linspace(5, 10, 6), np.linspace(9, 5, 5)])
>>> y = np.concatenate([np.linspace(5, 10, 6), np.linspace(9, 5, 5)])
>>> wv = Weaver(x, y)
>>> res_x, res_y = wv.smooth(1.0).get()
>>> res_y
Expand Down Expand Up @@ -685,7 +685,7 @@ def to_function(self, s=0):
>>> f([6.12, 7.44])
array([12.24, 14.88])
>>> y = np.concat([np.linspace(5, 10, 6), np.linspace(9, 5, 5)])
>>> y = np.concatenate([np.linspace(5, 10, 6), np.linspace(9, 5, 5)])
>>> wv = Weaver(x, y)
>>> f = wv.to_function(1.0)
>>> f(7.0)
Expand Down

0 comments on commit ddc818c

Please sign in to comment.