Skip to content

Commit 30abed1

Browse files
committed
✅ CI pass
1 parent c664d6d commit 30abed1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

modelitool/simulate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ def simulate(
106106
if simulation_options is not None:
107107
if x is not None and 'x' in simulation_options:
108108
warnings.warn(
109-
"Boundary file 'x' specified both in simulation_options and as a direct parameter."
110-
" The 'x' provided in simulate() will be used.",
111-
UserWarning
109+
"Boundary file 'x' specified both in simulation_options and as a "
110+
"direct parameter. The 'x' provided in simulate() will be used.",
111+
UserWarning,
112+
stacklevel=2
112113
)
113114

114115
self._set_simulation_options(simulation_options)

0 commit comments

Comments
 (0)