Skip to content

Commit

Permalink
Improve Doc Strings: Ref Kin Energy (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored Sep 29, 2023
1 parent 0820311 commit bc3c986
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/usage/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Particles

.. py:method:: set_energy_MeV(energy_MeV)
Write-only: Set reference particle energy.
Write-only: Set reference particle kinetic energy.

.. py:method:: load_file(madx_file)
Expand Down
2 changes: 1 addition & 1 deletion src/particles/ReferenceParticle.H
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace impactx
return ref_energy;
}

/** Set reference particle energy
/** Set reference particle kinetic energy
*
* @param energy initial kinetic energy (MeV)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/python/ReferenceParticle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ void init_refparticle(py::module& m)
"Set reference particle rest mass (MeV/c^2)", py::arg("mass_MeV"))
.def("set_energy_MeV", &RefPart::set_energy_MeV,
py::return_value_policy::reference_internal,
"Set reference particle energy (MeV)", py::arg("energy_MeV"))
"Set reference particle kinetic energy (MeV)", py::arg("energy_MeV"))
;
}

0 comments on commit bc3c986

Please sign in to comment.