Skip to content

Commit

Permalink
style: linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed May 7, 2024
1 parent 7827b50 commit 9e77fda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
5 changes: 3 additions & 2 deletions src/snkf/handlers/motion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def motion_generator(
Notes
-----
The motion is generated by drawing from a normal distribution with standard
deviation for the 6 motion parameters (3 translations and 3 rotations, in this order)
Then the cumulative motion is computed by summing the motion at each frame.
deviation for the 6 motion parameters: 3 rotation (x,y,z) and 3 translations.
Then the cumulative motion is computed by summing the motion at each frame, to
derive the absolute displacement compared to the base reference.
"""
rng = validate_rng(rng)
t_speeds = rng.normal(0, t_std, (n_frames, 3))
Expand Down
30 changes: 0 additions & 30 deletions src/snkf/simulation/acquisition.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/snkf/simulation/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def reverse(func: Callable[[T, U], V]) -> Callable[[U, T], V]:
def reversed_func(a: U, b: T) -> V:
return func(b, a)

reversed_func.__doc__ = "Reversed argument form of %s" % func.__doc__
reversed_func.__name__ = "reversed %s" % func.__name__
reversed_func.__doc__ = f"Reversed argument form of {func.__doc__}"
reversed_func.__name__ = f"reversed {func.__name__}"
return reversed_func


Expand Down

0 comments on commit 9e77fda

Please sign in to comment.