forked from mantidproject/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mantidproject#37019 from robertapplin/0-expose-wor…
…kspace-properties-to-python Expose missing Data Objects Workspace properties to python
- Loading branch information
Showing
8 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/GroupingWorkspaceProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/GroupingWorkspace.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::GroupingWorkspace; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<GroupingWorkspace>) | ||
|
||
void export_GroupingWorkspaceProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<GroupingWorkspace>::define("GroupingWorkspaceProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/OffsetsWorkspaceProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/OffsetsWorkspace.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::OffsetsWorkspace; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<OffsetsWorkspace>) | ||
|
||
void export_OffsetsWorkspaceProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<OffsetsWorkspace>::define("OffsetsWorkspaceProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/SpecialWorkspace2DProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/SpecialWorkspace2D.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::SpecialWorkspace2D; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<SpecialWorkspace2D>) | ||
|
||
void export_SpecialWorkspace2DProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<SpecialWorkspace2D>::define("SpecialWorkspace2DProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/SplittersWorkspaceProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/SplittersWorkspace.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::SplittersWorkspace; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<SplittersWorkspace>) | ||
|
||
void export_SplittersWorkspaceProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<SplittersWorkspace>::define("SplittersWorkspaceProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/TableWorkspaceProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/TableWorkspace.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::TableWorkspace; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<TableWorkspace>) | ||
|
||
void export_TableWorkspaceProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<TableWorkspace>::define("TableWorkspaceProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/Workspace2DProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/Workspace2D.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::Workspace2D; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<Workspace2D>) | ||
|
||
void export_Workspace2DProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<Workspace2D>::define("Workspace2DProperty"); | ||
} |
18 changes: 18 additions & 0 deletions
18
Framework/PythonInterface/mantid/dataobjects/src/Exports/WorkspaceSingleValueProperty.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Mantid Repository : https://github.com/mantidproject/mantid | ||
// | ||
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI, | ||
// NScD Oak Ridge National Laboratory, European Spallation Source, | ||
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS | ||
// SPDX - License - Identifier: GPL - 3.0 + | ||
#include "MantidDataObjects/WorkspaceSingleValue.h" | ||
#include "MantidPythonInterface/api/WorkspacePropertyExporter.h" | ||
#include "MantidPythonInterface/core/GetPointer.h" | ||
|
||
using Mantid::DataObjects::WorkspaceSingleValue; | ||
|
||
GET_POINTER_SPECIALIZATION(Mantid::API::WorkspaceProperty<WorkspaceSingleValue>) | ||
|
||
void export_WorkspaceSingleValueProperty() { | ||
using Mantid::PythonInterface::WorkspacePropertyExporter; | ||
WorkspacePropertyExporter<WorkspaceSingleValue>::define("WorkspaceSingleValueProperty"); | ||
} |