Skip to content

Commit

Permalink
first facade done :)
Browse files Browse the repository at this point in the history
extra space
  • Loading branch information
Ipuch committed Dec 9, 2023
1 parent bd716f5 commit 6ccc95e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
10 changes: 3 additions & 7 deletions bionc/bionc_casadi/natural_segment_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
from casadi import vertcat

from .natural_coordinates import SegmentNaturalCoordinates
from .natural_marker import NaturalMarker
from ..protocols.natural_segment_markers import AbstractNaturalSegmentMarkers


class NaturalSegmentMarkers(AbstractNaturalSegmentMarkers):
"""
Class used to define markers of a segment based on natural coordinate.
Attributes
----------
_markers : list[NaturalMarker]
name of the segment
This class provides an interface for adding markers to a segment for CASADI Backend (MX), retrieving the number of markers,
retrieving the names of the markers, and performing operations related to the markers' positions,
constraints, and jacobian.
"""

def __init__(self):
Expand Down
13 changes: 5 additions & 8 deletions bionc/bionc_numpy/natural_segment_markers.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import numpy as np

from ..protocols.natural_segment_markers import AbstractNaturalSegmentMarkers
from .natural_coordinates import SegmentNaturalCoordinates
from .natural_marker import NaturalMarker
from ..protocols.natural_segment_markers import AbstractNaturalSegmentMarkers


class NaturalSegmentMarkers(AbstractNaturalSegmentMarkers):
"""
Class used to define markers of a segment based on natural coordinate.
Attributes
----------
_markers : list[NaturalMarker]
name of the segment
This class provides an interface for adding markers to a segment for Numpy Backend (ndarray),
retrieving the number of markers,
retrieving the names of the markers,
and performing operations related to the markers' positions, constraints, and jacobian.
"""

def __init__(self):
Expand Down

0 comments on commit 6ccc95e

Please sign in to comment.