Skip to content

Commit acab64f

Browse files
committed
Fixed merge conflict emerging from git pull in an attempt to git push.
2 parents 10fc1f8 + 51ed5e8 commit acab64f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

marlpde/parameters.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def jacobian_sparsity():
185185
# Turn offsets into a single tuple instead of a tuple of tuples.
186186
offsets = sum(offsets, ())
187187
# Check that we have as many offsets as diagonals:
188-
try:
188+
try:
189189
assert len(offsets) == diagonals.shape[0]
190190
except AssertionError as e:
191191
print('Setup of diagonals incorrect.')
@@ -226,22 +226,19 @@ def __post_init__(self):
226226
'''
227227
Filter out solver settings that are mutually incompatible.
228228
'''
229-
if self.solver != "scipy":
230-
try:
229+
try:
230+
if self.solver != "scipy":
231231
del self.__dataclass_fields__["method"]
232232
del self.__dataclass_fields__["lband"]
233233
del self.__dataclass_fields__["uband"]
234-
except KeyError:
235-
pass
236-
else:
237-
try:
234+
else:
238235
del self.__dataclass_fields__["scheme"]
239236
del self.__dataclass_fields__["adaptive"]
240237
if self.method != "LSODA":
241238
del self.__dataclass_fields__["lband"]
242239
del self.__dataclass_fields__["uband"]
243-
except KeyError:
244-
pass
240+
except KeyError:
241+
pass
245242

246243

247244
@dataclass
@@ -250,7 +247,7 @@ class Tracker:
250247
Initialises all the tracking parameters, such as tracker interval.
251248
Also indicates the quantities to be tracked, as boolean values.
252249
'''
253-
progress_tracker_interval: float = Solver().t_range/ 1_000
250+
progress_tracker_interval: float = Solver().t_range / 1_000
254251
live_plotting: bool = False
255252
plotting_interval: str = '0:05'
256253
data_tracker_interval: float = 0.01

0 commit comments

Comments
 (0)