From dabe5f4c348c31161474a5079c5ae849df1ca59c Mon Sep 17 00:00:00 2001 From: Nick Draper <nick.draper@stfc.ac.uk> Date: Wed, 1 Jul 2015 16:39:05 +0100 Subject: [PATCH] Expose additional mantid version methods to python re #11821 --- .../PythonInterface/mantid/kernel/src/kernel.cpp.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/kernel.cpp.in b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/kernel.cpp.in index 3cca84d1d47..a0b5fd007bf 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/kernel.cpp.in +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/kernel.cpp.in @@ -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(); -- GitLab