Skip to content

Commit

Permalink
fix: remove double definition
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed May 16, 2024
1 parent 0837e91 commit c7a958c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions nitransforms/nonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ class DenseFieldTransform(TransformBase):

__slots__ = ("_field", "_deltas")

@property
def ndim(self):
"""Access the dimensions of this Desne Field Transform."""
return self._field.ndim - 1

def __init__(self, field=None, is_deltas=True, reference=None):
"""
Create a dense field transform.
Expand Down Expand Up @@ -248,12 +243,6 @@ class BSplineFieldTransform(TransformBase):

__slots__ = ["_coeffs", "_knots", "_weights", "_order", "_moving"]

@property
def ndim(self):
"""Access the dimensions of this BSpline."""
# return ndim = self._coeffs.shape[-1]
return self._coeffs.ndim - 1

def __init__(self, coefficients, reference=None, order=3):
"""Create a smooth deformation field using B-Spline basis."""
super().__init__()
Expand Down

0 comments on commit c7a958c

Please sign in to comment.