Skip to content

Commit f4ea0e7

Browse files
#1329 coverage
1 parent 5d21da2 commit f4ea0e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pybamm/plotting/quick_plot.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,7 @@ def reset_axis(self):
432432
var_min is not None
433433
and var_max is not None
434434
and (np.isnan(var_min) or np.isnan(var_max))
435-
):
436-
variable_lists[0][0]._interpolation_function(0, 0)
435+
): # pragma: no cover
437436
raise ValueError(f"Axis limits cannot be NaN for variables '{key}'")
438437

439438
def plot(self, t):

pybamm/solvers/processed_variable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def get_spatial_scale(self, name, domain):
512512
else:
513513
return self.length_scales[domain]
514514
except KeyError:
515-
if self.warn:
515+
if self.warn: # pragma: no cover
516516
pybamm.logger.warning(
517517
"No length scale set for {}. "
518518
"Using default of 1 [m].".format(domain)

0 commit comments

Comments
 (0)