@@ -928,8 +928,25 @@ void BasisFactoryClasses(py::module &m)
928928 Returns
929929 -------
930930 None
931- )" );
931+ )" )
932+ .def (" getFieldLabels" ,
933+ [](BasisClasses::Basis& A)
934+ {
935+ return A.getFieldLabels ();
936+ },
937+ R"(
938+ Provide the field labels for the basis functions
932939
940+ Parameters
941+ ----------
942+ None
943+
944+ Returns
945+ -------
946+ list: str
947+ list of basis function labels
948+ )"
949+ );
933950
934951 py::class_<BasisClasses::BiorthBasis, std::shared_ptr<BasisClasses::BiorthBasis>, PyBiorthBasis, BasisClasses::Basis>
935952 (m, " BiorthBasis" )
@@ -1279,9 +1296,9 @@ void BasisFactoryClasses(py::module &m)
12791296 // orthoCheck is not in the base class and needs to have different
12801297 // parameters depending on the basis type. Here, the quadrature
12811298 // is determined by the scale of the meridional grid.
1282- .def (" orthoCheck" , [](BasisClasses::Cylindrical& A)
1299+ .def (" orthoCheck" , [](BasisClasses::Cylindrical& A, int knots )
12831300 {
1284- return A.orthoCheck ();
1301+ return A.orthoCheck (knots );
12851302 },
12861303 R"(
12871304 Check orthgonality of basis functions by quadrature
@@ -1298,7 +1315,7 @@ void BasisFactoryClasses(py::module &m)
12981315 -------
12991316 list(numpy.ndarray)
13001317 list of numpy.ndarrays from [0, ... , Mmax]
1301- )" )
1318+ )" , py::arg ( " knots " )= 400 )
13021319 .def_static (" cacheInfo" , [](std::string cachefile)
13031320 {
13041321 return BasisClasses::Cylindrical::cacheInfo (cachefile);
@@ -2044,11 +2061,11 @@ void BasisFactoryClasses(py::module &m)
20442061 // orthoCheck is not in the base class and needs to have
20452062 // different parameters depending on the basis type. Here the
20462063 // user can and will often need to specify a quadrature value.
2047- .def (" orthoCheck" , [](BasisClasses::FieldBasis& A)
2064+ .def (" orthoCheck" , [](BasisClasses::FieldBasis& A)
20482065 {
20492066 return A.orthoCheck ();
20502067 },
2051- R"(
2068+ R"(
20522069 Check orthgonality of basis functions by quadrature
20532070
20542071 Inner-product matrix of orthogonal functions
@@ -2062,10 +2079,10 @@ void BasisFactoryClasses(py::module &m)
20622079 numpy.ndarray
20632080 orthogonality matrix
20642081 )"
2065- );
2082+ );
20662083
20672084 py::class_<BasisClasses::VelocityBasis, std::shared_ptr<BasisClasses::VelocityBasis>, BasisClasses::FieldBasis>(m, " VelocityBasis" )
2068- .def (py::init<const std::string&>(),
2085+ .def (py::init<const std::string&>(),
20692086 R"(
20702087 Create a orthogonal velocity-field basis
20712088
0 commit comments