Skip to content

Commit a460035

Browse files
increase coverage
1 parent 53f51a7 commit a460035

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pybamm/citations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def tag_citations(self): # pragma: no cover
155155
(non-manually). This is used for verbose output when printing citations
156156
such that it can be seen which citations were registered by PyBaMM classes.
157157
158-
To use, call :meth:`tag_citations` after calling :meth:`register` for
159-
all citations and enable verbose output with :meth:`print_citations`
158+
To use, either call :meth:`tag_citations` after calling :meth:`register`
159+
for all citations, or enable verbose output with :meth:`print_citations`
160160
or :meth:`print`.
161161
162162
.. note::
@@ -180,7 +180,7 @@ def tag_citations(self): # pragma: no cover
180180
181181
"""
182182
if self._citation_tags:
183-
print("Citations registered:")
183+
print("\n Citations registered: \n")
184184
for key, entry in self._citation_tags.items():
185185
print(f"{key} was cited due to the use of {entry}")
186186

@@ -214,7 +214,7 @@ def print(self, filename=None, output_format="text", verbose=False):
214214
if filename is None:
215215
print(citations)
216216
if verbose:
217-
self.tag_citations()
217+
self.tag_citations() # pragma: no cover
218218
else:
219219
with open(filename, "w") as f:
220220
f.write(citations)

0 commit comments

Comments
 (0)