Skip to content

Commit

Permalink
Small updates for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Dec 24, 2023
1 parent 245e488 commit de4e7c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions interfaces/cython/cantera/thermo.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ cdef class ThermoPhase(_SolutionBase):
>>> phase()
>>> print(phase.report())
:param show_thermo:
A Boolean argument specifying whether to show phase thermodynamic
information in the ouptut.
:param threshold:
The threshold used to clip data in the output. Values below the threshold
are not displayed.
"""
return pystr(self.thermo.report(bool(show_thermo), threshold))

Expand Down
5 changes: 3 additions & 2 deletions site_scons/site_tools/UnitsInterfaceBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ def __setattr__(self, name, value):
else:
setattr(self._phase, name, value)
def report(self, show_thermo=True, threshold=1e-14):
return self._phase.report(bool(show_thermo), threshold)
@copy_doc
def report(self, *args, **kwargs):
return self._phase.report(*args, **kwargs)
def __call__(self, *args, **kwargs):
print(self.report(*args, **kwargs))
Expand Down

0 comments on commit de4e7c2

Please sign in to comment.