Skip to content

Commit c7a958c

Browse files
committed
fix: remove double definition
1 parent 0837e91 commit c7a958c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

nitransforms/nonlinear.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ class DenseFieldTransform(TransformBase):
2828

2929
__slots__ = ("_field", "_deltas")
3030

31-
@property
32-
def ndim(self):
33-
"""Access the dimensions of this Desne Field Transform."""
34-
return self._field.ndim - 1
35-
3631
def __init__(self, field=None, is_deltas=True, reference=None):
3732
"""
3833
Create a dense field transform.
@@ -248,12 +243,6 @@ class BSplineFieldTransform(TransformBase):
248243

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

251-
@property
252-
def ndim(self):
253-
"""Access the dimensions of this BSpline."""
254-
# return ndim = self._coeffs.shape[-1]
255-
return self._coeffs.ndim - 1
256-
257246
def __init__(self, coefficients, reference=None, order=3):
258247
"""Create a smooth deformation field using B-Spline basis."""
259248
super().__init__()

0 commit comments

Comments
 (0)