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

Method load_near2far_data

python/simulation.py:3363–3371  ·  view source on GitHub ↗

Load the Fourier-transformed fields into the `near2far` object (replacing any values currently there) from the `NearToFarData` object `n2fdata`. You must load from an object that was created by `get_near2far_data` in a simulation of the same dimensions (for both the

(self, near2far, n2fdata)

Source from the content-addressed store, hash-verified

3361 return NearToFarData(F=self.get_dft_data(near2far.F))
3362
3363 def load_near2far_data(self, near2far, n2fdata):
3364 """
3365 Load the Fourier-transformed fields into the `near2far` object (replacing any
3366 values currently there) from the `NearToFarData` object `n2fdata`. You must load
3367 from an object that was created by `get_near2far_data` in a simulation of the same
3368 dimensions (for both the cell and the flux regions) with the same number of
3369 processors and chunk layout.
3370 """
3371 mp._load_dft_data(near2far.F, n2fdata.F)
3372
3373 def load_minus_near2far_data(self, near2far, n2fdata):
3374 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected