Surface NMR forward modelling
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyMerlin.cpp 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 22/04/19 14:06:32
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email Trevor.Irons@utah.edu
  14. * @copyright Copyright (c) 2019, University of Utah
  15. * @copyright Copyright (c) 2019, Lemma Software, LLC
  16. */
  17. #include <pybind11/pybind11.h>
  18. #include <pybind11/iostream.h>
  19. #include <pybind11/stl.h>
  20. #include <pybind11/complex.h>
  21. #include <pybind11/eigen.h>
  22. #include "Merlin"
  23. namespace py = pybind11;
  24. PYBIND11_MODULE(Merlin, m) {
  25. py::add_ostream_redirect(m, "ostream_redirect");
  26. m.doc() = "Python binding of Lemma::Merlin, additional details can be found at https://lemmasoftware.org";
  27. py::class_<Lemma::KernelV0, std::shared_ptr<Lemma::KernelV0> > KernelV0(m, "KernelV0");
  28. // lifecycle
  29. KernelV0.def(py::init(&Lemma::KernelV0::NewSP))
  30. .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::KernelV0::DeSerialize),
  31. "Construct object from yaml representation")
  32. // print
  33. .def("Serialize", &Lemma::KernelV0::Print, "YAML representation of the class")
  34. .def("__repr__", &Lemma::KernelV0::Print)
  35. // modifiers
  36. .def("PushCoil", &Lemma::KernelV0::PushCoil, "Adds a coil to the sNMR instrument")
  37. .def("SetLayeredEarthEM", &Lemma::KernelV0::SetLayeredEarthEM, "Sets the EM model used in kernel calculation")
  38. .def("SetIntegrationSize", &Lemma::KernelV0::SetIntegrationSize, "Sets the size of the volume to integrate the kernel")
  39. .def("SetIntegrationOrigin", &Lemma::KernelV0::SetIntegrationOrigin, "Sets the origin of the integration volume")
  40. .def("SetPulseCurrent", &Lemma::KernelV0::SetPulseCurrent, "Sets the current of the pulses")
  41. .def("SetTemperature", &Lemma::KernelV0::SetTemperature, "Sets the temperature, in K")
  42. .def("SetTolerance", &Lemma::KernelV0::SetTolerance, "Sets the tolerance used in octree splitting")
  43. .def("SetMinLevel", &Lemma::KernelV0::SetMinLevel, "Sets the minimum leaf level used in octree splitting")
  44. .def("SetMaxLevel", &Lemma::KernelV0::SetMaxLevel, "Sets the maximum leaf level used in octree splitting")
  45. .def("SetPulseDuration", &Lemma::KernelV0::SetPulseDuration, "Sets the duration of the pulse")
  46. .def("SetDepthLayerInterfaces", &Lemma::KernelV0::SetDepthLayerInterfaces, "Sets the layer depth interfaces")
  47. .def("SetHankelTransformType", &Lemma::KernelV0::SetHankelTransformType, "Sets the Hankel transform type")
  48. // accessors
  49. .def("GetName", &Lemma::KernelV0::GetName, "Returns the name of the class")
  50. .def("GetSigmaModel", &Lemma::KernelV0::GetSigmaModel, "Returns the conductivity model")
  51. .def("GetKernel", &Lemma::KernelV0::GetKernel, "Returns the imaging kernel in matrix form")
  52. .def("GetTolerance", &Lemma::KernelV0::GetTolerance, "Returns the tolerance which was used to construct the kernel")
  53. .def("GetInterfaces", &Lemma::KernelV0::GetInterfaces, "Returns the layer interfaces")
  54. .def("GetPulseCurrent", &Lemma::KernelV0::GetPulseCurrent, "Returns the pulse current")
  55. .def("GetPulseDuration", &Lemma::KernelV0::GetPulseDuration, "Returns the length of the pulse moment")
  56. // operations
  57. .def("CalculateK0", &Lemma::KernelV0::CalculateK0, "Calculates an intial amplitude kernel")
  58. //.def("AlignWithAkvoDataset", &Lemma::KernelV0::AlignWithAkvoDataset, "Aligns the kernel parameters with a dataset")
  59. ;
  60. //
  61. // py::class_<Lemma::PolygonalWireAntenna, std::shared_ptr<Lemma::PolygonalWireAntenna> > PolygonalWireAntenna(m,
  62. // "PolygonalWireAntenna", KernelV0);
  63. //
  64. // // lifecycle
  65. // PolygonalWireAntenna.def(py::init(&Lemma::PolygonalWireAntenna::NewSP))
  66. // .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::PolygonalWireAntenna::DeSerialize),
  67. // "Construct object from yaml representation")
  68. //
  69. // // print
  70. // .def("__repr__", &Lemma::PolygonalWireAntenna::Print)
  71. // .def("Serialize", &Lemma::PolygonalWireAntenna::Print, "YAML representation of the class")
  72. //
  73. // // accessors
  74. // .def("GetName", &Lemma::PolygonalWireAntenna::GetName, "Returns the name of the class")
  75. //
  76. // // operations
  77. // .def("ApproximateWithElectricDipoles", &Lemma::PolygonalWireAntenna::ApproximateWithElectricDipoles,
  78. // "Approximates loop with series of electric dipoles around loop")
  79. //
  80. // // modifiers
  81. // .def("SetMinDipoleRatio", &Lemma::PolygonalWireAntenna::SetMinDipoleRatio,
  82. // "Sets the minimum dipole ratio use, smaller values increase precision")
  83. // .def("SetMinDipoleMoment", &Lemma::PolygonalWireAntenna::SetMinDipoleMoment,
  84. // "Sets the minimum dipole moment which will be used, smaller values increase precision and computational time")
  85. // .def("SetMaxDipoleMoment", &Lemma::PolygonalWireAntenna::SetMaxDipoleMoment,
  86. // "Sets the maximum dipole moment which will be used, smaller values increase precision and computational time")
  87. // ;
  88. //
  89. // py::class_<Lemma::DipoleSource, std::shared_ptr<Lemma::DipoleSource> > DipoleSource(m, "DipoleSource");
  90. //
  91. // // lifecycle
  92. // DipoleSource.def(py::init(&Lemma::DipoleSource::NewSP))
  93. // .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::DipoleSource::DeSerialize),
  94. // "Construct object from yaml representation")
  95. //
  96. // // print
  97. // .def("Serialize", &Lemma::DipoleSource::Print, "YAML representation of the class")
  98. // .def("__repr__", &Lemma::DipoleSource::Print)
  99. //
  100. // // accessors
  101. // .def("GetName", &Lemma::DipoleSource::GetName, "Returns the name of the class")
  102. // .def("GetNumberOfFrequencies", &Lemma::DipoleSource::GetNumberOfFrequencies,
  103. // "Returns the number of frequencies")
  104. // .def("GetFrequencies", &Lemma::DipoleSource::GetFrequencies, "Returns an array of frequencies")
  105. // .def("GetFrequency", &Lemma::DipoleSource::GetFrequency, "Returns the frequency of the argument index")
  106. // .def("GetAngularFrequency", &Lemma::DipoleSource::GetAngularFrequency,
  107. // "Returns the angular frequency of the argument index")
  108. // .def("GetPhase", &Lemma::DipoleSource::GetPhase, "Returns the phase of the dipole")
  109. // .def("GetMoment", &Lemma::DipoleSource::GetMoment, "Returns the moment of the dipole")
  110. // .def("GetLocation", py::overload_cast< >(&Lemma::DipoleSource::GetLocation), "Returns the location of the dipole")
  111. // .def("GetPolarisation", &Lemma::DipoleSource::GetPolarisation, "Returns the polarisation of the dipole")
  112. //
  113. // // modifiers
  114. // .def("SetLocation", py::overload_cast<const Lemma::Vector3r&> (&Lemma::DipoleSource::SetLocation),
  115. // "Sets the location of the dipole")
  116. // .def("SetPolarisation", py::overload_cast<const Lemma::Vector3r&> (&Lemma::DipoleSource::SetPolarisation),
  117. // "Sets the polarisation of the dipole")
  118. // .def("SetType", &Lemma::DipoleSource::SetType, "Sets the type")
  119. // .def("SetMoment", &Lemma::DipoleSource::SetMoment, "Sets the moment of the dipole")
  120. // .def("SetPhase", &Lemma::DipoleSource::SetPhase, "Sets the phase of the dipole")
  121. // .def("SetNumberOfFrequencies", &Lemma::DipoleSource::SetNumberOfFrequencies,
  122. // "Sets the number of frequencies to calculate for the dipole")
  123. // .def("SetFrequency", &Lemma::DipoleSource::SetFrequency,
  124. // "Sets a single frequency, first argument is index, second argument is frequency")
  125. // .def("SetFrequencies", &Lemma::DipoleSource::SetFrequencies,
  126. // "Sets all frequencies, argument is numpy array of frequencies")
  127. // ;
  128. //
  129. // py::class_<Lemma::LayeredEarthEM, std::shared_ptr<Lemma::LayeredEarthEM> >
  130. // LayeredEarthEM(m, "LayeredEarthEM");
  131. //
  132. // // lifecycle
  133. // LayeredEarthEM.def(py::init(&Lemma::LayeredEarthEM::NewSP))
  134. // .def_static("DeSerialize", py::overload_cast<const std::string&>
  135. // (&Lemma::LayeredEarthEM::DeSerialize),"Construct object from yaml representation")
  136. //
  137. // // print
  138. // .def("Serialize", &Lemma::LayeredEarthEM::Print, "YAML representation of the class")
  139. // .def("__repr__", &Lemma::LayeredEarthEM::Print)
  140. //
  141. // // accessors
  142. // .def("GetName", &Lemma::LayeredEarthEM::GetName, "Returns the name of the class")
  143. //
  144. // .def("GetLayerConductivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerConductivity),
  145. // "Returns the conductivity of all layers")
  146. // .def("GetLayerConductivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerConductivity),
  147. // "Returns the conductivity of the specified layer")
  148. //
  149. // .def("GetLayerSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
  150. // "Returns the susceptibility of all layers")
  151. // .def("GetLayerSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
  152. // "Returns the susceptibilty of the specified layer")
  153. // .def("GetLayerLowFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
  154. // "Returns the low frequqncy permitivity of all layers")
  155. // .def("GetLayerLowFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
  156. // "Returns the low frequency permitivity of the specified layer")
  157. // .def("GetLayerHighFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
  158. // "Returns the low frequency permitivity of all layers")
  159. // .def("GetLayerHighFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
  160. // "Returns the low frequency permitivity of the specified layer")
  161. // .def("GetLayerTauSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
  162. // "Returns the tau permitivity of all layers")
  163. // .def("GetLayerTauSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
  164. // "Returns the tau permitivity of the specified layer")
  165. // .def("GetLayerBreathSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
  166. // "Returns the breth permitivity of all layers")
  167. // .def("GetLayerBreathSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
  168. // "Returns the breath permitivity of the specified layer")
  169. //
  170. // .def("GetLayerPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
  171. // "Returns the permitivity of all layers")
  172. // .def("GetLayerPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
  173. // "Returns the permitivity of the specified layer")
  174. // .def("GetLayerLowFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
  175. // "Returns the low frequqncy permitivity of all layers")
  176. // .def("GetLayerLowFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
  177. // "Returns the low frequency permitivity of the specified layer")
  178. // .def("GetLayerHighFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
  179. // "Returns the low frequency permitivity of all layers")
  180. // .def("GetLayerHighFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
  181. // "Returns the low frequency permitivity of the specified layer")
  182. // .def("GetLayerTauPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
  183. // "Returns the tau permitivity of all layers")
  184. // .def("GetLayerTauPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
  185. // "Returns the tau permitivity of the specified layer")
  186. // .def("GetLayerBreathPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
  187. // "Returns the breth permitivity of all layers")
  188. // .def("GetLayerBreathPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
  189. // "Returns the breath permitivity of the specified layer")
  190. //
  191. //
  192. // // modifiers
  193. // .def("SetNumberOfLayers", &Lemma::LayeredEarthEM::SetNumberOfLayers,
  194. // "Sets the number of layers in the model")
  195. // .def("SetLayerConductivity", py::overload_cast< const Lemma::VectorXcr& >(&Lemma::LayeredEarthEM::SetLayerConductivity),
  196. // "Sets the conductivity of the layers, the input is a complex array of conductivity")
  197. // .def("SetLayerConductivity1", py::overload_cast< const int&, const Lemma::Complex& >(&Lemma::LayeredEarthEM::SetLayerConductivity),
  198. // "Sets the conductivity of a single layer, the first input is the layer index, and the secondinput is a complex conductivity")
  199. // .def("SetLayerThickness", &Lemma::LayeredEarthEM::SetLayerThickness,
  200. // "Sets the thickness of layers, excluding the air and bottom which are infinite")
  201. //
  202. // .def("SetLayerHighFreqSusceptibility", &Lemma::LayeredEarthEM::SetLayerHighFreqSusceptibility,
  203. // "Sets the high frequency susceptibility for Cole-COle model")
  204. // .def("SetLayerLowFreqSusceptibility", &Lemma::LayeredEarthEM::SetLayerLowFreqSusceptibility,
  205. // "Sets the low frequency susceptibility for Cole-COle model")
  206. // .def("SetLayerBreathSusceptibility", &Lemma::LayeredEarthEM::SetLayerBreathSusceptibility,
  207. // "Sets thesusceptibility breath for Cole-COle model")
  208. //
  209. // .def("SetLayerHighFreqPermitivity", &Lemma::LayeredEarthEM::SetLayerHighFreqPermitivity,
  210. // "Sets the high frequency permitivity for Cole-COle model")
  211. // .def("SetLayerLowFreqPermitivity", &Lemma::LayeredEarthEM::SetLayerLowFreqPermitivity,
  212. // "Sets the low frequency permitivity for Cole-COle model")
  213. // .def("SetLayerBreathPermitivity", &Lemma::LayeredEarthEM::SetLayerBreathPermitivity,
  214. // "Sets the permitivity breath for Cole-COle model")
  215. //
  216. //
  217. // // methods
  218. // .def("EvaluateColeColeModel", &Lemma::LayeredEarthEM::EvaluateColeColeModel,
  219. // "Calculates complex resistivity based on cole-cole parameters")
  220. // ;
  221. //
  222. // py::class_<Lemma::EMEarth1D, std::shared_ptr<Lemma::EMEarth1D> >
  223. // EMEarth1D(m, "EMEarth1D");
  224. //
  225. // // lifecycle
  226. // EMEarth1D.def(py::init(&Lemma::EMEarth1D::NewSP))
  227. // //.def_static("DeSerialize", py::overload_cast<const std::string&>
  228. // // (&Lemma::EMEarth1D::DeSerialize),"Construct object from yaml representation")
  229. //
  230. // // print
  231. // .def("Serialize", &Lemma::EMEarth1D::Print, "YAML representation of the class")
  232. // .def("__repr__", &Lemma::EMEarth1D::Print)
  233. //
  234. // // accessors
  235. // .def("GetName", &Lemma::EMEarth1D::GetName, "Returns the name of the class")
  236. // .def("GetFieldPoints", &Lemma::EMEarth1D::GetFieldPoints, "Returns the FieldPoint class")
  237. //
  238. // // modifiers
  239. // .def("AttachWireAntenna", &Lemma::EMEarth1D::AttachWireAntenna,
  240. // "Sets the wire antenna to use for calculations")
  241. // .def("AttachDipoleSOurce", &Lemma::EMEarth1D::AttachDipoleSource,
  242. // "Sets a DipoleSource to use for calculations")
  243. // .def("AttachFieldPoints", &Lemma::EMEarth1D::AttachFieldPoints,
  244. // "Sets the FieldPoints to use for calculations")
  245. // .def("AttachLayeredEarthEM", &Lemma::EMEarth1D::AttachLayeredEarthEM,
  246. // "Sets the LayeredEarthEM to use for calculations")
  247. //
  248. // .def("SetFieldToCalculate", &Lemma::EMEarth1D::SetFieldsToCalculate,
  249. // "Sets which fields to calculate")
  250. // .def("SetHankelTransformMethod", &Lemma::EMEarth1D::SetHankelTransformMethod,
  251. // "Sets which Hankel transform to use")
  252. // .def("SetTxRxMode", &Lemma::EMEarth1D::SetTxRxMode,
  253. // "Sets the TxRx mode flag")
  254. //
  255. // //methods
  256. // #ifdef KIHALEE_EM1D
  257. // .def("MakeCalc", &Lemma::EMEarth1D::MakeCalc, "Calls KiHa Lee's EM1D FORTRAN77 code")
  258. // #endif
  259. //
  260. // .def("MakeCalc3", &Lemma::EMEarth1D::MakeCalc3, "Native Lemma EM calculation")
  261. // .def("CalculateWireAntennaFields", &Lemma::EMEarth1D::CalculateWireAntennaFields,
  262. // "Native Lemma calculation of a wire antenna")
  263. // ;
  264. //
  265. // py::class_<Lemma::FieldPoints, std::shared_ptr<Lemma::FieldPoints> >
  266. // FieldPoints(m, "FieldPoints");
  267. //
  268. // // lifecycle
  269. // FieldPoints.def(py::init(&Lemma::FieldPoints::NewSP))
  270. // .def_static("DeSerialize", py::overload_cast<const std::string&>
  271. // (&Lemma::FieldPoints::DeSerialize),"Construct object from yaml representation")
  272. //
  273. // // print
  274. // .def("Serialize", &Lemma::FieldPoints::Print, "YAML representation of the class")
  275. // .def("__repr__", &Lemma::FieldPoints::Print)
  276. //
  277. // // modifiers
  278. // .def("SetNumberOfPoints", &Lemma::FieldPoints::SetNumberOfPoints,
  279. // "Sets the number of locations to make calculations on.")
  280. // .def("SetLocation", py::overload_cast< const int&, const Lemma::Vector3r& >
  281. // (&Lemma::FieldPoints::SetLocation), "Sets the location of the index-specified point." )
  282. // .def("SetLocation", py::overload_cast< const int&,
  283. // const Lemma::Real&, const Lemma::Real&, const Lemma::Real& >
  284. // (&Lemma::FieldPoints::SetLocation),
  285. // "Sets the location of the index-specified point with the three coordinates")
  286. //
  287. // // accessors
  288. // .def("GetNumberOfPoints", &Lemma::FieldPoints::GetNumberOfPoints,
  289. // "Returns the number of locations to make calculations on.")
  290. // .def("GetLocations", &Lemma::FieldPoints::GetLocations,
  291. // "Returns the locations which calculations are made on.")
  292. // .def("GetLocationsMat", &Lemma::FieldPoints::GetLocationsMat,
  293. // "Returns a matrix of the locations which calculations are made on.")
  294. // .def("GetLocation", &Lemma::FieldPoints::GetLocation,
  295. // "Returns the location of the specified index.")
  296. // .def("GetLocationX", &Lemma::FieldPoints::GetLocationX,
  297. // "Returns the northing (x) location of the specified index.")
  298. // .def("GetLocationY", &Lemma::FieldPoints::GetLocationY,
  299. // "Returns the easting (y) location of the specified index.")
  300. // .def("GetLocationZ", &Lemma::FieldPoints::GetLocationZ,
  301. // "Returns the altitude/depth (z) location of the specified index.")
  302. // .def("GetEfield", py::overload_cast< > (&Lemma::FieldPoints::GetEfield),
  303. // "Returns the electric field for all frequencies.")
  304. // .def("GetEfield", py::overload_cast< const int& > (&Lemma::FieldPoints::GetEfield),
  305. // "Returns the electric field for the specified frequency index.")
  306. // .def("GetEfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetEfield),
  307. // "Returns the electric field for the specified frequency and location index.")
  308. // .def("GetEfieldMat", &Lemma::FieldPoints::GetEfieldMat,
  309. // "Returns the electric field for the specified frequency.")
  310. // .def("GetHfield", py::overload_cast< > (&Lemma::FieldPoints::GetHfield),
  311. // "Returns the H field for all frequencies.")
  312. // .def("GetHfield", py::overload_cast< const int& > (&Lemma::FieldPoints::GetHfield),
  313. // "Returns the H field for the specified frequency index.")
  314. // .def("GetHfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetHfield),
  315. // "Returns the H field for the specified frequency and location index.")
  316. // //.def("GetBfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetBfield),
  317. // // "Returns the magnetic (B) field for the specified frequency and location index.")
  318. // .def("GetHfieldMat", &Lemma::FieldPoints::GetHfieldMat,
  319. // "Returns the H field for the specified frequency.")
  320. // .def("GetMask", &Lemma::FieldPoints::MaskPoint, "Return the mask boolean value for the specified index")
  321. //
  322. // // methods
  323. // .def("ClearFields", &Lemma::FieldPoints::ClearFields, "Clears calculated fields")
  324. // .def("MaskPoint", &Lemma::FieldPoints::MaskPoint, "Masks the index resulting in no calculation")
  325. // .def("UnMaskPoint", &Lemma::FieldPoints::UnMaskPoint, "Unmasks the index resulting in a calculation")
  326. //
  327. // ;
  328. }