Skip to content

Commit ebb8a56

Browse files
committed
add in needed self keyword
1 parent 85239b6 commit ebb8a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: openmc/lattice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ def find_element(self, point):
24342434
if (p < self.base_coordinate):
24352435
idx = -1
24362436
elif (p > self._layer_boundaries[-1]):
2437-
idx = num_layers + 1
2437+
idx = self.num_layers + 1
24382438
else:
24392439
while not(p >= self._layer_boundaries[idx] and p <= self._layer_boundaries[idx + 1]):
24402440
idx += 1

0 commit comments

Comments
 (0)