Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Jan 5, 2024
1 parent 778fcbb commit 20402e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyNastran/bdf/cards/coordinate_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ def add_ijk(cls, cid: int, origin=None, i=None, j=None, k=None,
defines the k unit vector
"""
coord_type = cls.type
coord_type = cls.type[-1]
origin, e1, e2, e3 = setup_add_ijk(coord_type, origin, i, j, k)
return cls(cid, e1, e2, e3, rid=rid, comment=comment)

Expand Down Expand Up @@ -3278,9 +3278,9 @@ def setup_add_axes(cid: int, coord_type: str, rid: int=0, origin=None,
return origin, i, j, k

def setup_add_ijk(coord_type: str,
origin=None, i=None, j=None, k=None,) -> tuple[np.ndarray, np.ndarray,
np.ndarray, np.ndarray]:
assert coord_type in ['CORD2R', 'CORD2C', 'CORD2S'], coord_type
origin=None, i=None, j=None, k=None,
) -> tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
assert coord_type in ['R', 'C', 'S'], coord_type
if origin is None:
origin = np.array([0., 0., 0.], dtype='float64')
else:
Expand Down
5 changes: 4 additions & 1 deletion pyNastran/dev/bdf_vectorized3/cards/coord.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ def add_axes(self, cid: int, coord_type: str, rid: int=0, origin=None,
The axes and planes are defined in the rid coordinate system
"""
origin, i, j, k = setup_add_axes()
origin, i, j, k = setup_add_axes(
cid, coord_type, rid=rid, origin=origin,
xaxis=xaxis, yaxis=yaxis, zaxis=zaxis,
xyplane=xyplane, yzplane=yzplane, xzplane=xzplane,)
n = self.add_ijk(cid, coord_type, origin, i, j, k, rid=rid, comment=comment)
return n

Expand Down

0 comments on commit 20402e0

Please sign in to comment.