Skip to content

Commit

Permalink
Adding python bindings for the off-diagonal
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Mar 29, 2024
1 parent c311962 commit eab32e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/src/format.endf.python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ namespace format {
python::overload_cast< njoy::codex::NuclideID, njoy::codex::ReactionID,
const njoy::ENDFtk::section::SquareMatrix& >( &njoy::codex::format::fromENDF ),
python::arg( "nuclide" ), python::arg( "reaction" ), python::arg( "endf" ),
"Return a CovarianceBlock from an ENDF SquareMatrix component" )
.def( "from_endf",
python::overload_cast< njoy::codex::NuclideID, njoy::codex::ReactionID,
njoy::codex::NuclideID, njoy::codex::ReactionID,
const njoy::ENDFtk::section::SquareMatrix& >( &njoy::codex::format::fromENDF ),
python::arg( "row_nuclide" ), python::arg( "row_reaction" ),
python::arg( "column_nuclide" ), python::arg( "column_reaction" ),
python::arg( "endf" ),
"Return a CovarianceBlock from an ENDF SquareMatrix component" );
}
} // namespace format

0 comments on commit eab32e8

Please sign in to comment.