Small updates for consistency

This commit is contained in:
Bryan Weber 2023-12-24 15:03:30 -05:00
parent 245e488c76
commit de4e7c2c44
2 changed files with 10 additions and 2 deletions

View File

@ -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))

View File

@ -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))