MCPcopy Create free account
hub / github.com/Cantera/cantera / names

Function names

samples/python/onedim/diffusion_flame_batch.py:89–96  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

87 file_name.unlink(missing_ok=True)
88
89def names(test):
90 if hdf_output:
91 # use internal container structure for HDF
92 file_name = output_path / "flame_data.h5"
93 return file_name, test
94 # use separate files for YAML
95 file_name = output_path / f"{test}.yaml".replace("-", "_").replace("/", "_")
96 return file_name, "solution"
97
98# Save to data directory
99file_name, entry = names("initial-solution")

Callers 1

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected