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

Method load_minus_near2far

python/simulation.py:3345–3352  ·  view source on GitHub ↗

As `load_near2far`, but negates the Fourier-transformed fields after they are loaded. This means that they will be *subtracted* from any future field Fourier transforms that are accumulated.

(self, fname, near2far)

Source from the content-addressed store, hash-verified

3343 near2far.save_hdf5(self.fields, fname, "", self.get_filename_prefix())
3344
3345 def load_minus_near2far(self, fname, near2far):
3346 """
3347 As `load_near2far`, but negates the Fourier-transformed fields after they are
3348 loaded. This means that they will be *subtracted* from any future field Fourier
3349 transforms that are accumulated.
3350 """
3351 self.load_near2far(fname, near2far)
3352 near2far.scale_dfts(-1.0)
3353
3354 def get_near2far_data(self, near2far):
3355 """

Callers

nothing calls this directly

Calls 2

load_near2farMethod · 0.95
scale_dftsMethod · 0.45

Tested by

no test coverage detected