Skip to content
Snippets Groups Projects
Commit 70888b3a authored by Matthew Andrew's avatar Matthew Andrew
Browse files

Removed unused functions Re #23642

parent 7404fc93
No related branches found
No related tags found
No related merge requests found
......@@ -5,30 +5,10 @@
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, division, print_function)
from mantid.api import WorkspaceGroup
from Muon.GUI.Common.muon_load_data import MuonLoadData
import Muon.GUI.Common.utilities.load_utils as load_utils
def is_workspace_group(workspace):
return isinstance(workspace, WorkspaceGroup)
def get_run_from_multi_period_data(workspace_list):
"""
Checks if multi-period data has a single consistent
run number and returns it, otherwise raises ValueError.
"""
runs = [ws.getRunNumber() for ws in workspace_list]
unique_runs = list(set(runs))
if len(unique_runs) != 1:
raise ValueError("Multi-period data contains >1 unique run number.")
else:
return unique_runs[0]
def exception_message_for_failed_files(failed_file_list):
return "Could not load the following files : \n - " + "\n - ".join(failed_file_list)
......
......@@ -24,4 +24,4 @@ class IteratorWithException:
return next(self.iterable)
# python 3 compatibility
next = __next__
\ No newline at end of file
next = __next__
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