Skip to content

Commit 6b745f4

Browse files
authored
np.round_ -> np.round
1 parent 005bab0 commit 6b745f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

quantities/tests/test_umath.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,19 @@ def test_around(self):
114114
[0, 0, 0, 10] * pq.J
115115
)
116116

117-
def test_round_(self):
117+
def test_round(self):
118118
self.assertQuantityEqual(
119-
np.round_([.5, 1.5, 2.5, 3.5, 4.5] * pq.J),
119+
np.round([.5, 1.5, 2.5, 3.5, 4.5] * pq.J),
120120
[0., 2., 2., 4., 4.] * pq.J
121121
)
122122

123123
self.assertQuantityEqual(
124-
np.round_([1,2,3,11] * pq.J, decimals=1),
124+
np.round([1,2,3,11] * pq.J, decimals=1),
125125
[1, 2, 3, 11] * pq.J
126126
)
127127

128128
self.assertQuantityEqual(
129-
np.round_([1,2,3,11] * pq.J, decimals=-1),
129+
np.round([1,2,3,11] * pq.J, decimals=-1),
130130
[0, 0, 0, 10] * pq.J
131131
)
132132

0 commit comments

Comments
 (0)