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

Method display_fluxes

python/simulation.py:3573–3586  ·  view source on GitHub ↗

Given a number of flux objects, this displays a comma-separated table of frequencies and flux spectra, prefixed by "flux1:" or similar (where the number is incremented after each run). All of the fluxes should be for the same `fcen`/`df`/`nfreq` or `freq`. The first

(self, *fluxes)

Source from the content-addressed store, hash-verified

3571 )
3572
3573 def display_fluxes(self, *fluxes):
3574 """
3575 Given a number of flux objects, this displays a comma-separated table of
3576 frequencies and flux spectra, prefixed by "flux1:" or similar (where the number is
3577 incremented after each run). All of the fluxes should be for the same
3578 `fcen`/`df`/`nfreq` or `freq`. The first column are the frequencies, and
3579 subsequent columns are the flux spectra.
3580 """
3581 if verbosity.meep > 0:
3582 display_csv(
3583 self,
3584 "flux",
3585 zip(get_flux_freqs(fluxes[0]), *[get_fluxes(f) for f in fluxes]),
3586 )
3587
3588 def load_flux(self, fname, flux):
3589 """

Callers 1

mainFunction · 0.95

Calls 3

display_csvFunction · 0.85
get_flux_freqsFunction · 0.85
get_fluxesFunction · 0.85

Tested by

no test coverage detected