示例#1
0
 def test_rot90(self):
     self.assertQuantityEqual(np.rot90(self.q),
                              np.array([[2, 4], [1, 3]]) * self.ureg.m)
示例#2
0
文件: test_numpy.py 项目: wiki01/pint
 def test_rot90(self):
     helpers.assert_quantity_equal(
         np.rot90(self.q), np.array([[2, 4], [1, 3]]) * self.ureg.m
     )