Skip to content

Commit

Permalink
Completes the new packages "joints" with the defined joints.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Oct 1, 2024
2 parents 1db5159 + e66cab3 commit 3607006
Show file tree
Hide file tree
Showing 12 changed files with 414 additions and 359 deletions.
9 changes: 5 additions & 4 deletions pylinkage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
from .interface import (
UnbuildableError,
HypostaticError,
Static,
NotCompletelyDefinedError,
Pivot,
Crank,
Fixed,
Linkage
Linkage,
)
from .joints import (
Crank,
Fixed,
Linear,
Revolute,
Static,
)
from .optimization import (
generate_bounds,
Expand Down
7 changes: 5 additions & 2 deletions pylinkage/interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
HypostaticError,
NotCompletelyDefinedError,
)
from .joint import (
from ..joints import (
Static,
Revolute,
Crank,
Linear,
Fixed,
)
from ..joints.revolute import Revolute, Pivot
# Will be deleted in next major release
from ..joints.revolute import Pivot
from .linkage import Linkage
331 changes: 0 additions & 331 deletions pylinkage/interface/joint.py

This file was deleted.

7 changes: 1 addition & 6 deletions pylinkage/interface/linkage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
import warnings
from math import gcd, tau
from .exceptions import HypostaticError
from .joint import (
Static,
Crank,
Fixed
)
from ..joints import Revolute
from ..joints import (Revolute, Fixed, Crank, Static)


class Linkage:
Expand Down
5 changes: 3 additions & 2 deletions pylinkage/joints/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Definition of joints."""

from .joint import Static
from .crank import Crank
from .fixed import Fixed
from .linear import Linear
from .revolute import Revolute

from ..interface.joint import (Static, Fixed, Crank,)
Loading

0 comments on commit 3607006

Please sign in to comment.