Mantid
Loading...
Searching...
No Matches
CloneMatrixWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include <vector>
10
11#include <boost/python/object.hpp> //Safer way to include Python.h
12
13namespace Mantid {
14namespace API {
15class MatrixWorkspace;
16}
17
18namespace PythonInterface {
19//** @name Numpy clones of data*/
22PyObject *cloneX(const API::MatrixWorkspace &self);
24PyObject *cloneY(const API::MatrixWorkspace &self);
26PyObject *cloneE(const API::MatrixWorkspace &self);
28PyObject *cloneDx(const API::MatrixWorkspace &self);
30} // namespace PythonInterface
31} // namespace Mantid
PyObject * cloneE(const API::MatrixWorkspace &self)
Create a numpy array from the E values of the given workspace reference.
PyObject * cloneY(const API::MatrixWorkspace &self)
Create a numpy array from the Y values of the given workspace reference.
PyObject * cloneDx(const API::MatrixWorkspace &self)
Create a numpy array from the E values of the given workspace reference.
PyObject * cloneX(const API::MatrixWorkspace &self)
{ Create a numpy array from the X values of the given workspace reference
Helper class which provides the Collimation Length for SANS instruments.