mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Small updates for consistency
This commit is contained in:
parent
245e488c76
commit
de4e7c2c44
@ -303,6 +303,13 @@ cdef class ThermoPhase(_SolutionBase):
|
|||||||
|
|
||||||
>>> phase()
|
>>> phase()
|
||||||
>>> print(phase.report())
|
>>> 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))
|
return pystr(self.thermo.report(bool(show_thermo), threshold))
|
||||||
|
|
||||||
|
@ -188,8 +188,9 @@ def UnitsInterfaceBuilder(env, target, source):
|
|||||||
else:
|
else:
|
||||||
setattr(self._phase, name, value)
|
setattr(self._phase, name, value)
|
||||||
|
|
||||||
def report(self, show_thermo=True, threshold=1e-14):
|
@copy_doc
|
||||||
return self._phase.report(bool(show_thermo), threshold)
|
def report(self, *args, **kwargs):
|
||||||
|
return self._phase.report(*args, **kwargs)
|
||||||
|
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
print(self.report(*args, **kwargs))
|
print(self.report(*args, **kwargs))
|
||||||
|
Loading…
Reference in New Issue
Block a user