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
          *              requires compilation of Lemma with VTK. The VTK files can become very large.
152
          *              requires compilation of Lemma with VTK. The VTK files can become very large.
153
          */
153
          */
154
         void CalculateK0 (const std::vector< std::string >& tx, const std::vector< std::string >& rx,
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
          *  Aligns the kernel pulse settings with an Akvo Processed dataset.
159
          *  Aligns the kernel pulse settings with an Akvo Processed dataset.

+ 3
- 1
python/pyMerlin.cpp View File

19
 
19
 
20
 #include <pybind11/pybind11.h>
20
 #include <pybind11/pybind11.h>
21
 #include <pybind11/iostream.h>
21
 #include <pybind11/iostream.h>
22
+#include <pybind11/stl.h>
23
+#include <pybind11/complex.h>
22
 #include <pybind11/eigen.h>
24
 #include <pybind11/eigen.h>
23
 #include "Merlin"
25
 #include "Merlin"
24
 
26
 
50
             .def("SetTemperature", &Lemma::KernelV0::SetTemperature, "Sets the temperature, in K")
52
             .def("SetTemperature", &Lemma::KernelV0::SetTemperature, "Sets the temperature, in K")
51
             .def("SetTolerance", &Lemma::KernelV0::SetTolerance, "Sets the tolerance used in octree splitting")
53
             .def("SetTolerance", &Lemma::KernelV0::SetTolerance, "Sets the tolerance used in octree splitting")
52
             .def("SetPulseDuration", &Lemma::KernelV0::SetPulseDuration, "Sets the duration of the pulse")
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
             // accessors
57
             // accessors
56
             .def("GetName", &Lemma::KernelV0::GetName, "Returns the name of the class")
58
             .def("GetName", &Lemma::KernelV0::GetName, "Returns the name of the class")

Loading…
Cancel
Save