Skip to content

Commit 8b0e043

Browse files
committed
Finished python bindings and unit test for GSection 33. Also fixed up some typos.
1 parent 9f02e08 commit 8b0e043

File tree

5 files changed

+1209
-10
lines changed

5 files changed

+1209
-10
lines changed

python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ if(ENDFtk.python)
210210
${CMAKE_CURRENT_SOURCE_DIR}/src/gsection/5/18g.python.cpp
211211
${CMAKE_CURRENT_SOURCE_DIR}/src/gsection/5/455g.python.cpp
212212
${CMAKE_CURRENT_SOURCE_DIR}/src/gsection/6g.python.cpp
213+
${CMAKE_CURRENT_SOURCE_DIR}/src/gsection/33g.python.cpp
213214
${CMAKE_CURRENT_SOURCE_DIR}/src/file/1.python.cpp
214215
${CMAKE_CURRENT_SOURCE_DIR}/src/file/2.python.cpp
215216
${CMAKE_CURRENT_SOURCE_DIR}/src/file/3.python.cpp

python/src/file/33.python.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace python = pybind11;
1212

1313
// declarations - sections
1414
void wrapSection_33( python::module&, python::module& );
15-
void wrapeGSection_33( python::module&, python::module& );
15+
void wrapGSection_33( python::module&, python::module& );
1616

1717
void wrapFile_33( python::module& module, python::module& viewmodule ) {
1818

python/src/gsection/33g.python.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void wrapGSection_33( python::module& module, python::module& ) {
5959
)
6060
.def_property_readonly(
6161
"number_groups",
62-
&GSection::numberNeutronGroups
62+
&GSection::numberNeutronGroups,
6363
"The number of neutron groups"
6464
)
6565
.def_property_readonly(
@@ -78,8 +78,8 @@ void wrapGSection_33( python::module& module, python::module& ) {
7878
"The number of secondary reactions"
7979
)
8080
.def(
81-
"covaraince",
82-
&GSection::covaraince,
81+
"covariance",
82+
&GSection::covariance,
8383
python::arg( "secondary_rxn" ),
8484
"The covaraince matrix for a given secondary reaction"
8585
);

0 commit comments

Comments
 (0)