Skip to content

Commit 82e4dac

Browse files
committed
fix: adding nsteps to bb
1 parent 2790d76 commit 82e4dac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LoopStructural/utils/_bounding_box.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def nelements(self, nelements):
7474
nsteps = np.ceil((self.maximum - self.origin) / step_vector).astype(int)
7575
self.nsteps = nsteps
7676

77+
@property
78+
def step_vector(self):
79+
return (self.maximum - self.origin) / self.nsteps
80+
7781
def fit(self, locations: np.ndarray):
7882
if locations.shape[1] != self.dimensions:
7983
raise LoopValueError(

0 commit comments

Comments
 (0)