Skip to content

Commit

Permalink
Fixed base class __str__ to use properties dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgibbon committed Aug 16, 2018
1 parent b0cbb59 commit b5d5de5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sympl/_core/base_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,8 @@ def __str__(self):
' inputs: {}\n'
' tendencies: {}\n'
' diagnostics: {}'.format(
self.__class__, self.inputs, self.tendencies, self.diagnostics)
self.__class__, self.input_properties.keys(),
self.tendency_properties.keys(), self.diagnostic_properties.keys())
)

def __repr__(self):
Expand Down Expand Up @@ -1147,7 +1148,8 @@ def __str__(self):
'instance of {}(DiagnosticComponent)\n'
' inputs: {}\n'
' diagnostics: {}'.format(
self.__class__, self.inputs, self.diagnostics)
self.__class__, self.input_properties.keys(),
self.diagnostic_properties.keys())
)

def __repr__(self):
Expand Down

0 comments on commit b5d5de5

Please sign in to comment.