Skip to content

Commit

Permalink
MNT: minor fixes - typos and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed May 15, 2024
1 parent 57b41ab commit 7a2e50a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rocketpy/mathutils/vector_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ def dot(self, other):
return self.__matmul__(other)

def round(self, decimals=0):
"""Round the matrix to a given number of decimals.
"""Round all the values matrix to a given number of decimals.
Parameters
----------
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def transformation(quaternion):
q_x /= q_norm
q_y /= q_norm
q_z /= q_norm
# precompute common terms
# pre-compute common terms
q_x2 = q_x**2
q_y2 = q_y**2
q_z2 = q_z**2
Expand Down
2 changes: 1 addition & 1 deletion rocketpy/sensors/accelerometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def measure(self, t, u, u_dot, relative_position, gravity, *args):
)
A = inertial_to_sensor @ A

# Apply noise + bias and quatize
# Apply noise + bias and quantize
A = self.apply_noise(A)
A = self.apply_temperature_drift(A)
A = self.quantize(A)
Expand Down
2 changes: 1 addition & 1 deletion rocketpy/tools.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import functools
import importlib
import importlib.metadata
import math
import re
import time
import math
from bisect import bisect_left

import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion tests/test_sensors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

import numpy as np

from rocketpy.mathutils.vector_matrix import Vector
Expand All @@ -25,7 +26,7 @@ def test_sensor_on_rocket(calisto_accel_gyro):


def test_ideal_sensors(flight_calisto_accel_gyro):
"""Test the ideal sensors. All types of sensors are here to reduvce
"""Test the ideal sensors. All types of sensors are here to reduce
testing time.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os

import numpy as np
from pytest import approx
import pytest
from pytest import approx

from rocketpy.mathutils.vector_matrix import Matrix, Vector
from rocketpy.tools import euler_to_quaternions
Expand Down

0 comments on commit 7a2e50a

Please sign in to comment.