MCPcopy Create free account
hub / github.com/NanoComp/meep / convert

Function convert

python/simulation.py:5560–5566  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

5558
5559def convert_h5(rm_h5, convert_cmd, *step_funcs):
5560 def convert(fname):
5561 if mp.my_rank() == 0:
5562 cmd = convert_cmd.split()
5563 cmd.append(fname)
5564 ret = subprocess.call(cmd)
5565 if ret == 0 and rm_h5:
5566 os.remove(fname)
5567
5568 def _convert_h5(sim, todo):
5569 hooksave = sim.output_h5_hook

Callers 1

_output_pngFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected