Skip to content

Commit

Permalink
Merge _reset method into constructor
Browse files Browse the repository at this point in the history
Since this only gets used here, just do it in the constructor.
(In the original PyBaMM version the _reset just gets used for testing,
which I think we want to do slightly differently anyway.)
  • Loading branch information
MJKirk committed Oct 22, 2020
1 parent db28a02 commit a6a545e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions flavio/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ class Citations:
"""

def __init__(self):
self._reset()

def _reset(self):
"Reset citations to default only (only for testing purposes)"
# Initialize empty papers to cite
self._papers_to_cite = set()

Expand Down

0 comments on commit a6a545e

Please sign in to comment.