Replace numpy.float with the builtin float type as numpy removes its own float type in v1.24.
PiperOrigin-RevId: 496412858
This commit is contained in:
parent
b45554623a
commit
7ce4bb72d4
|
@ -157,7 +157,7 @@ class PacketTest(absltest.TestCase):
|
||||||
p.timestamp = 0
|
p.timestamp = 0
|
||||||
self.assertAlmostEqual(packet_getter.get_float(p), 0.42)
|
self.assertAlmostEqual(packet_getter.get_float(p), 0.42)
|
||||||
self.assertEqual(p.timestamp, 0)
|
self.assertEqual(p.timestamp, 0)
|
||||||
p2 = packet_creator.create_float(np.float(0.42))
|
p2 = packet_creator.create_float(float(0.42))
|
||||||
p2.timestamp = 0
|
p2.timestamp = 0
|
||||||
self.assertAlmostEqual(packet_getter.get_float(p2), 0.42)
|
self.assertAlmostEqual(packet_getter.get_float(p2), 0.42)
|
||||||
self.assertEqual(p2.timestamp, 0)
|
self.assertEqual(p2.timestamp, 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user