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

Method get_near2far_data

python/simulation.py:3354–3361  ·  view source on GitHub ↗

Get the Fourier-transformed fields corresponding to the given `near2far` object as a `NearToFarData`, which is just a named tuple of NumPy arrays. Note that this object is only useful for passing to `load_near2far_data` below and should be considered opaque.

(self, near2far)

Source from the content-addressed store, hash-verified

3352 near2far.scale_dfts(-1.0)
3353
3354 def get_near2far_data(self, near2far):
3355 """
3356 Get the Fourier-transformed fields corresponding to the given `near2far` object as
3357 a `NearToFarData`, which is just a named tuple of NumPy arrays. Note that this
3358 object is only useful for passing to `load_near2far_data` below and should be
3359 considered opaque.
3360 """
3361 return NearToFarData(F=self.get_dft_data(near2far.F))
3362
3363 def load_near2far_data(self, near2far, n2fdata):
3364 """

Callers 1

Calls 1

get_dft_dataMethod · 0.95

Tested by

no test coverage detected