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

Function Ldos

python/simulation.py:5992–6004  ·  view source on GitHub ↗

`Ldos(fcen, df, nfreq, freq)` ##sig Create an LDOS object with either frequency bandwidth `df` centered at `fcen` and `nfreq` equally spaced frequency points or an array/list `freq` for arbitrarily spaced frequencies. This can be passed to the `dft_ldos` step function below as a k

(*args)

Source from the content-addressed store, hash-verified

5990
5991
5992def Ldos(*args):
5993 """
5994 `Ldos(fcen, df, nfreq, freq)` ##sig
5995
5996 Create an LDOS object with either frequency bandwidth `df` centered at `fcen` and
5997 `nfreq` equally spaced frequency points or an array/list `freq` for arbitrarily spaced
5998 frequencies. This can be passed to the `dft_ldos` step function below as a keyword
5999 argument.
6000 """
6001 args = fix_dft_args(args, 0)
6002 freq = args[0]
6003
6004 return mp._dft_ldos(freq)
6005
6006
6007def dft_ldos(*args, **kwargs):

Callers

nothing calls this directly

Calls 1

fix_dft_argsFunction · 0.85

Tested by

no test coverage detected