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

Method get_filename_prefix

python/solver.py:329–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 self.target_freq = 1 / mp.inf
328
329 def get_filename_prefix(self):
330 if self.filename_prefix:
331 return f"{self.filename_prefix}-"
332 _, filename = os.path.split(sys.argv[0])
333
334 return (
335 ""
336 if filename in ["ipykernel_launcher.py", "__main__.py"]
337 else re.sub(r"\.py$", "", filename) + "-"
338 )
339
340 def get_freqs(self):
341 return self.mode_solver.get_freqs()

Callers 15

output_fieldMethod · 0.95
output_field_xMethod · 0.95
output_field_yMethod · 0.95
output_field_zMethod · 0.95
output_epsilonMethod · 0.95
output_muMethod · 0.95
output_tot_pwrFunction · 0.45
output_charge_densityFunction · 0.45
output_poyntingFunction · 0.45
output_poynting_xFunction · 0.45
output_poynting_yFunction · 0.45
output_poynting_zFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_at_timeMethod · 0.36
test_with_prefixMethod · 0.36