Skip to content

Commit

Permalink
fix CI: minor typo and deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jun 25, 2024
1 parent 210d172 commit 75e4d42
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
2 changes: 0 additions & 2 deletions elastica/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
GeneralConstraint,
FixedConstraint,
HelicalBucklingBC,
FreeRod,
OneEndFixedRod,
)
from elastica.external_forces import (
NoForces,
Expand Down
11 changes: 1 addition & 10 deletions elastica/boundary_conditions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__doc__ = """ Built-in boundary condition implementationss """

import warnings
pass
from typing import Any, Optional, TypeVar, Generic

import numpy as np
Expand Down Expand Up @@ -238,15 +238,6 @@ def compute_constrain_rates(
omega_collection[..., 0] = 0.0


class OneEndFixedRod(OneEndFixedBC):
# Please clear this part beyond version 0.3.0
"""Deprecated 0.2.1: Same implementation as OneEndFixedBC"""
warnings.warn(
"OneEndFixedRod is deprecated and renamed to OneEndFixedBC. The deprecated name will be removed in the future.",
DeprecationWarning,
)


class GeneralConstraint(ConstraintBase):
"""
This boundary condition class allows the specified node/link to have a configurable constraint.
Expand Down
2 changes: 0 additions & 2 deletions elastica/joint.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
__doc__ = """ Module containing joint classes to connect multiple rods together. """
__all__ = ["FreeJoint", "HingeJoint", "FixedJoint", "get_relative_rotation_two_systems"]

pass

from elastica._rotations import _inv_rotate
from elastica.typing import SystemType, RodType, ConnectionIndex, RigidBodyType

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__doc__ = """Reset the ghost vectors or scalar variables using functions implemented in Numba"""

import numpy
import numpy as np
from numpy.typing import NDArray
from numba import njit

Expand Down
2 changes: 1 addition & 1 deletion elastica/rigidbody/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
assert base_radius > 0.0, "base_radius must be positive"
assert density > 0.0, "density must be positive"

self.radius = np.float64(base_radiu)
self.radius = np.float64(base_radius)
self.density = np.float64(density)
self.length = np.float64(2 * base_radius)
# This is for a rigid body cylinder
Expand Down

0 comments on commit 75e4d42

Please sign in to comment.