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

Function get_force_freqs

python/simulation.py:6092–6097  ·  view source on GitHub ↗

Given a force object, returns a list of the frequencies that it is computing the spectrum for.

(f)

Source from the content-addressed store, hash-verified

6090
6091
6092def get_force_freqs(f):
6093 """
6094 Given a force object, returns a list of the frequencies that it is computing the
6095 spectrum for.
6096 """
6097 return [f.freq[i] for i in range(f.freq.size())]
6098
6099
6100def get_forces(f):

Callers 1

display_forcesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected