Skip to content

Commit

Permalink
Fix more ruff-linter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWilhelmUniklinikFreiburg committed Feb 3, 2025
1 parent 43bf433 commit a6f72d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pypulseq/tests/test_rotation3D_vs_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def compare_gradients(grad_A, grad_B):
grad_B_dict = grad_B.__dict__
if len(grad_A_dict) != len(grad_B_dict):
return False
for key in grad_A_dict.keys():
if not key in grad_B_dict.keys():
for key in grad_A_dict:
if not key in grad_B_dict:
return False
elif (type(grad_A_dict[key]) == float and type(grad_B_dict[key]) == float) or (
type(grad_A_dict[key]) == np.float64 and type(grad_B_dict[key]) == np.float64
Expand Down Expand Up @@ -123,7 +123,7 @@ def get_rotation_matrix(channel, angle_radians):
]

for angle_degree in (
[0.0, 0.1, 1, 2, 3, 60, 90, 180, 360] + list(range(10, 450, 30)) + [-0.1, -1, -90, -180, -360, -400]
[0.0, 0.1, 1, 2, 3, 60, 90, 180, 360, *list(range(10, 450, 30)), -0.1, -1, -90, -180, -360, -400]
):
print('angle_degree:', angle_degree)
angle_radians = angle_degree * math.pi / 180
Expand Down

0 comments on commit a6f72d1

Please sign in to comment.