Browse Source

Working wrapper for kernel class in python

master
Trevor Irons 5 years ago
parent
commit
d6b6ac3069
2 changed files with 5 additions and 2 deletions
  1. 2
    1
      include/KernelV0.h
  2. 3
    1
      python/pyMerlin.cpp

+ 2
- 1
include/KernelV0.h View File

@@ -152,7 +152,8 @@ namespace Lemma {
152 152
          *              requires compilation of Lemma with VTK. The VTK files can become very large.
153 153
          */
154 154
         void CalculateK0 (const std::vector< std::string >& tx, const std::vector< std::string >& rx,
155
-                bool vtkOutput=false );
155
+                bool vtkOutput );
156
+                //bool vtkOutput=false );
156 157
 
157 158
         /**
158 159
          *  Aligns the kernel pulse settings with an Akvo Processed dataset.

+ 3
- 1
python/pyMerlin.cpp View File

@@ -19,6 +19,8 @@
19 19
 
20 20
 #include <pybind11/pybind11.h>
21 21
 #include <pybind11/iostream.h>
22
+#include <pybind11/stl.h>
23
+#include <pybind11/complex.h>
22 24
 #include <pybind11/eigen.h>
23 25
 #include "Merlin"
24 26
 
@@ -50,7 +52,7 @@ PYBIND11_MODULE(Merlin, m) {
50 52
             .def("SetTemperature", &Lemma::KernelV0::SetTemperature, "Sets the temperature, in K")
51 53
             .def("SetTolerance", &Lemma::KernelV0::SetTolerance, "Sets the tolerance used in octree splitting")
52 54
             .def("SetPulseDuration", &Lemma::KernelV0::SetPulseDuration, "Sets the duration of the pulse")
53
-            .def("SetDepthLayerInteraces", &Lemma::KernelV0::SetDepthLayerInterfaces, "Sets the layer depth interfaces")
55
+            .def("SetDepthLayerInterfaces", &Lemma::KernelV0::SetDepthLayerInterfaces, "Sets the layer depth interfaces")
54 56
 
55 57
             // accessors
56 58
             .def("GetName", &Lemma::KernelV0::GetName, "Returns the name of the class")

Loading…
Cancel
Save