Przeglądaj źródła

Addition of missing wrapper functions in PolygonalWireAntenna

master
Trevor Irons 4 lat temu
rodzic
commit
b7240d6e64
2 zmienionych plików z 8 dodań i 1 usunięć
  1. 7
    0
      Modules/FDEM1D/python/pyFDEM1D.cpp
  2. 1
    1
      python/setup.py

+ 7
- 0
Modules/FDEM1D/python/pyFDEM1D.cpp Wyświetl plik

@@ -90,6 +90,13 @@ PYBIND11_MODULE(FDEM1D, m) {
90 90
         .def("ApproximateWithElectricDipoles", &Lemma::PolygonalWireAntenna::ApproximateWithElectricDipoles,
91 91
             "Approximates loop with series of electric dipoles around loop")
92 92
 
93
+        // modifiers
94
+        .def("SetMinDipoleRatio", &Lemma::PolygonalWireAntenna::SetMinDipoleRatio,
95
+            "Sets the minimum dipole ratio use, smaller values increase precision")
96
+        .def("SetMinDipoleMoment", &Lemma::PolygonalWireAntenna::SetMinDipoleMoment,
97
+            "Sets the minimum dipole moment which will be used, smaller values increase precision and computational time")
98
+        .def("SetMaxDipoleMoment", &Lemma::PolygonalWireAntenna::SetMaxDipoleMoment,
99
+            "Sets the maximum dipole moment which will be used, smaller values increase precision and computational time")
93 100
     ;
94 101
 
95 102
     py::class_<Lemma::DipoleSource, std::shared_ptr<Lemma::DipoleSource> > DipoleSource(m, "DipoleSource");

+ 1
- 1
python/setup.py Wyświetl plik

@@ -21,7 +21,7 @@ class InstallPlatlib(install):
21 21
 
22 22
 setup(
23 23
   name             = 'pyLemma',
24
-  version          = '0.0.6', 
24
+  version          = '0.0.7', 
25 25
   author           = 'Trevor Irons and others',
26 26
   author_email     = 'Trevor.Irons@lemmasoftware.org',
27 27
   description      = 'A short description of the app/lib',

Ładowanie…
Anuluj
Zapisz