Skip to content

Commit 7b44228

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5e29fa1 commit 7b44228

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

LoopStructural/interpolators/_discrete_interpolator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def solve_system(
686686
solver_kwargs.pop("x0", None)
687687
if Q is None:
688688
logger.warning("No inequality constraints, using lsmr")
689-
return self.solve_system("lsmr", solver_kwargs)
689+
return self.solve_system("lsmr", solver_kwargs=solver_kwargs)
690690

691691
try:
692692
from loopsolver import admm_solve

LoopStructural/interpolators/supports/_3d_base_structured.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def position_to_cell_global_index(self, pos):
285285

286286
def inside(self, pos):
287287
# check whether point is inside box
288+
pos = self.check_position(pos)
288289
inside = np.all((pos > self.origin) & (pos < self.maximum), axis=1)
289290
return inside
290291

0 commit comments

Comments
 (0)