Skip to content

Commit

Permalink
Making a few corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Aug 6, 2024
1 parent e04162f commit 0ad59da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 12 additions & 1 deletion python/src/IsotropicAngularDistributions.python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ void wrapIsotropicAngularDistributions( python::module& module, python::module&
python::class_< Component > component(

module,
"IsotropicAngularDistributions"
"IsotropicAngularDistributions",
"The angular distribution data is fully isotropic"
);

// wrap the component
component
.def(

python::init<>(),
"Initialise the component\n\n"
"Arguments:\n"
" self the component"
);
}
3 changes: 2 additions & 1 deletion python/src/TwoBodyDistributionData.python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ void wrapTwoBodyDistributionData( python::module& module, python::module& ) {
)
.def_property_readonly(

// static constexpr function needs lambda
"type",
&Component::type,
[] ( const Component& self ) { return self.type(); },
"The distribution data type"
)
.def_property_readonly(
Expand Down
3 changes: 2 additions & 1 deletion python/src/UncorrelatedDistributionData.python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ void wrapUncorrelatedDistributionData( python::module& module, python::module& )
)
.def_property_readonly(

// static constexpr function needs lambda
"type",
&Component::type,
[] ( const Component& self ) { return self.type(); },
"The distribution data type"
)
.def_property_readonly(
Expand Down

0 comments on commit 0ad59da

Please sign in to comment.