Skip to content
Snippets Groups Projects
Commit dabe5f4c authored by Nick Draper's avatar Nick Draper
Browse files

Expose additional mantid version methods to python

re #11821
parent ef8dbfd6
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,18 @@ BOOST_PYTHON_MODULE(_kernel)
def("version_str", &Mantid::Kernel::MantidVersion::version,
"Returns the Mantid version string in the form \"major.minor.patch\"");
def("release_notes_url", &Mantid::Kernel::MantidVersion::releaseNotes,
"Returns the url to the most applicable release notes");
def("revision", &Mantid::Kernel::MantidVersion::revision,
"Returns the abbreviated SHA-1 of the last commit");
def("revision_full", &Mantid::Kernel::MantidVersion::revisionFull,
"Returns the full SHA-1 of the last commit");
def("release_date", &Mantid::Kernel::MantidVersion::releaseDate,
"Returns the date of the last commit");
def("doi", &Mantid::Kernel::MantidVersion::doi,
"Returns the DOI for this release of Mantid");
def("paper_citation", &Mantid::Kernel::MantidVersion::paperCitation,
"Returns The citation for the Mantid paper");
Mantid::PythonInterface::Registry::TypeRegistry::registerBuiltins();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment