|
@@ -27,7 +27,6 @@ namespace py = pybind11;
|
27
|
27
|
PYBIND11_MODULE(FDEM1D, m) {
|
28
|
28
|
|
29
|
29
|
py::add_ostream_redirect(m, "ostream_redirect");
|
30
|
|
-
|
31
|
30
|
m.doc() = "Python binding of Lemma::FDEM1D, additional details can be found at https://lemmasoftware.org";
|
32
|
31
|
|
33
|
32
|
|
|
@@ -230,18 +229,20 @@ PYBIND11_MODULE(FDEM1D, m) {
|
230
|
229
|
"Calculates complex resistivity based on cole-cole parameters")
|
231
|
230
|
;
|
232
|
231
|
|
|
232
|
+
|
233
|
233
|
py::class_<Lemma::EMEarth1D, std::shared_ptr<Lemma::EMEarth1D> >
|
234
|
234
|
EMEarth1D(m, "EMEarth1D");
|
235
|
235
|
|
236
|
236
|
// lifecycle
|
237
|
237
|
EMEarth1D.def(py::init(&Lemma::EMEarth1D::NewSP))
|
|
238
|
+/*
|
238
|
239
|
//.def_static("DeSerialize", py::overload_cast<const std::string&>
|
239
|
240
|
// (&Lemma::EMEarth1D::DeSerialize),"Construct object from yaml representation")
|
240
|
241
|
|
241
|
242
|
// print
|
242
|
243
|
.def("Serialize", &Lemma::EMEarth1D::Print, "YAML representation of the class")
|
243
|
244
|
.def("__repr__", &Lemma::EMEarth1D::Print)
|
244
|
|
-
|
|
245
|
+
|
245
|
246
|
// accessors
|
246
|
247
|
.def("GetName", &Lemma::EMEarth1D::GetName, "Returns the name of the class")
|
247
|
248
|
.def("GetFieldPoints", &Lemma::EMEarth1D::GetFieldPoints, "Returns the FieldPoint class")
|
|
@@ -264,15 +265,18 @@ PYBIND11_MODULE(FDEM1D, m) {
|
264
|
265
|
"Sets the TxRx mode flag")
|
265
|
266
|
|
266
|
267
|
//methods
|
267
|
|
-#ifdef KIHALEE_EM1D
|
|
268
|
+ #ifdef KIHALEE_EM1D
|
268
|
269
|
.def("MakeCalc", &Lemma::EMEarth1D::MakeCalc, "Calls KiHa Lee's EM1D FORTRAN77 code")
|
269
|
|
-#endif
|
|
270
|
+ #endif
|
270
|
271
|
|
271
|
272
|
.def("MakeCalc3", &Lemma::EMEarth1D::MakeCalc3, "Native Lemma EM calculation")
|
272
|
273
|
.def("CalculateWireAntennaFields", &Lemma::EMEarth1D::CalculateWireAntennaFields,
|
273
|
274
|
"Native Lemma calculation of a wire antenna")
|
|
275
|
+*/
|
|
276
|
+
|
274
|
277
|
;
|
275
|
278
|
|
|
279
|
+
|
276
|
280
|
py::class_<Lemma::FieldPoints, std::shared_ptr<Lemma::FieldPoints> >
|
277
|
281
|
FieldPoints(m, "FieldPoints");
|
278
|
282
|
|
|
@@ -334,8 +338,6 @@ PYBIND11_MODULE(FDEM1D, m) {
|
334
|
338
|
.def("ClearFields", &Lemma::FieldPoints::ClearFields, "Clears calculated fields")
|
335
|
339
|
.def("MaskPoint", &Lemma::FieldPoints::MaskPoint, "Masks the index resulting in no calculation")
|
336
|
340
|
.def("UnMaskPoint", &Lemma::FieldPoints::UnMaskPoint, "Unmasks the index resulting in a calculation")
|
337
|
|
-
|
|
341
|
+
|
338
|
342
|
;
|
339
|
343
|
}
|
340
|
|
-
|
341
|
|
-
|