Skip to content

Commit

Permalink
#1329 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Jan 20, 2021
1 parent 5d21da2 commit f4ea0e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pybamm/plotting/quick_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ def reset_axis(self):
var_min is not None
and var_max is not None
and (np.isnan(var_min) or np.isnan(var_max))
):
variable_lists[0][0]._interpolation_function(0, 0)
): # pragma: no cover
raise ValueError(f"Axis limits cannot be NaN for variables '{key}'")

def plot(self, t):
Expand Down
2 changes: 1 addition & 1 deletion pybamm/solvers/processed_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def get_spatial_scale(self, name, domain):
else:
return self.length_scales[domain]
except KeyError:
if self.warn:
if self.warn: # pragma: no cover
pybamm.logger.warning(
"No length scale set for {}. "
"Using default of 1 [m].".format(domain)
Expand Down

0 comments on commit f4ea0e7

Please sign in to comment.