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

Method custom_py_src_time

python/meep-python.hpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8class custom_py_src_time : public src_time {
9public:
10 custom_py_src_time(PyObject *fun, double st = -infinity, double et = infinity,
11 std::complex<double> f = 0, double fw = 0)
12 : func(fun), freq(f), start_time(float(st)), end_time(float(et)), fwidth(fw) {
13 SWIG_PYTHON_THREAD_SCOPED_BLOCK;
14 Py_INCREF(func);
15 }
16 virtual ~custom_py_src_time() {
17 SWIG_PYTHON_THREAD_SCOPED_BLOCK;
18 Py_DECREF(func);

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected