mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Python] Fix default arguments for Solution.write_chemkin
Also, add quiet option to suppress output
This commit is contained in:
parent
363fe2cf73
commit
f15a34d0f2
@ -334,7 +334,8 @@ cdef class _SolutionBase:
|
||||
Y.to_file(str(filename))
|
||||
|
||||
def write_chemkin(self, mechanism_path=None, thermo_path=None, transport_path=None,
|
||||
sort_species=False, sort_elements=False, overwrite=False):
|
||||
sort_species=None, sort_elements=None, overwrite=False,
|
||||
quiet=False):
|
||||
"""
|
||||
Write this `~cantera.Solution` instance to one or more Chemkin-format files.
|
||||
See the documentation for `cantera.yaml2ck.convert` for information about the
|
||||
@ -351,6 +352,7 @@ cdef class _SolutionBase:
|
||||
sort_elements=sort_elements,
|
||||
overwrite=overwrite,
|
||||
)
|
||||
if not quiet:
|
||||
print(f"Wrote: {output_paths}")
|
||||
|
||||
def __getitem__(self, selection):
|
||||
|
Loading…
Reference in New Issue
Block a user