Loading autocnet/fileio/utils.py +1 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,7 @@ def calculate_slope(x1, x2): Returns Returns ------- ------- : dataframe : dataframe A dataframe with the slope between x1 and x2 for each row. A dataframe with the slope between the points in x1 and x2 for each row. """ """ slopes = (x2.y.values - x1.y.values)/(x2.x.values-x1.x.values) slopes = (x2.y.values - x1.y.values)/(x2.x.values-x1.x.values) return pd.DataFrame(slopes, columns=['slope']) return pd.DataFrame(slopes, columns=['slope']) autocnet/transformation/tests/test_transformations.py +0 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,6 @@ import numpy as np import numpy.testing import numpy.testing import pandas as pd import pandas as pd from autocnet.transformation import transformations from autocnet.transformation import transformations from autocnet.fileio import utils class TestHomography(unittest.TestCase): class TestHomography(unittest.TestCase): Loading Loading
autocnet/fileio/utils.py +1 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,7 @@ def calculate_slope(x1, x2): Returns Returns ------- ------- : dataframe : dataframe A dataframe with the slope between x1 and x2 for each row. A dataframe with the slope between the points in x1 and x2 for each row. """ """ slopes = (x2.y.values - x1.y.values)/(x2.x.values-x1.x.values) slopes = (x2.y.values - x1.y.values)/(x2.x.values-x1.x.values) return pd.DataFrame(slopes, columns=['slope']) return pd.DataFrame(slopes, columns=['slope'])
autocnet/transformation/tests/test_transformations.py +0 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,6 @@ import numpy as np import numpy.testing import numpy.testing import pandas as pd import pandas as pd from autocnet.transformation import transformations from autocnet.transformation import transformations from autocnet.fileio import utils class TestHomography(unittest.TestCase): class TestHomography(unittest.TestCase): Loading