diff --git a/elastica/__init__.py b/elastica/__init__.py index f705615a..21dfddb7 100644 --- a/elastica/__init__.py +++ b/elastica/__init__.py @@ -17,8 +17,6 @@ GeneralConstraint, FixedConstraint, HelicalBucklingBC, - FreeRod, - OneEndFixedRod, ) from elastica.external_forces import ( NoForces, diff --git a/elastica/boundary_conditions.py b/elastica/boundary_conditions.py index 66680e2d..ad1a35cd 100644 --- a/elastica/boundary_conditions.py +++ b/elastica/boundary_conditions.py @@ -1,6 +1,6 @@ __doc__ = """ Built-in boundary condition implementationss """ -import warnings +pass from typing import Any, Optional, TypeVar, Generic import numpy as np @@ -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. diff --git a/elastica/joint.py b/elastica/joint.py index 038ac256..2788b501 100644 --- a/elastica/joint.py +++ b/elastica/joint.py @@ -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 diff --git a/elastica/reset_functions_for_block_structure/_reset_ghost_vector_or_scalar.py b/elastica/reset_functions_for_block_structure/_reset_ghost_vector_or_scalar.py index 4af0cd59..18e5d129 100644 --- a/elastica/reset_functions_for_block_structure/_reset_ghost_vector_or_scalar.py +++ b/elastica/reset_functions_for_block_structure/_reset_ghost_vector_or_scalar.py @@ -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 diff --git a/elastica/rigidbody/sphere.py b/elastica/rigidbody/sphere.py index 38aaf23d..b7797ceb 100644 --- a/elastica/rigidbody/sphere.py +++ b/elastica/rigidbody/sphere.py @@ -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