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

Method _create_fname

python/solver.py:762–765  ·  view source on GitHub ↗
(self, fname, prefix, parity_suffix)

Source from the content-addressed store, hash-verified

760 h5file[key] = self.get_curfield_as_array(False)
761
762 def _create_fname(self, fname, prefix, parity_suffix):
763 parity_str = self.mode_solver.get_parity_string()
764 suffix = f".{parity_str}" if parity_suffix and parity_str else ""
765 return prefix + fname + suffix + ".h5"
766
767 def compute_field_energy(self):
768 return self.mode_solver.compute_field_energy()

Callers 3

_output_vector_fieldMethod · 0.95
_output_scalar_fieldMethod · 0.95

Calls 1

get_parity_stringMethod · 0.80

Tested by

no test coverage detected