Skip to content
Snippets Groups Projects
Commit afebd426 authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #17949 Fix formatting issues picked up by flake8

parent f477452b
No related merge requests found
......@@ -160,7 +160,6 @@ class AbstractInst(object):
@return: The filename of the file - Without the path or extension
"""
@staticmethod
@abstractmethod
def _get_instrument_alg_save_ranges(instrument=''):
......@@ -261,7 +260,6 @@ def _prefix_dot_to_ext(ext):
return ext
# These empty hooks can be used to diagnose when an override hasn't
# fired or if steps are correctly being skipped
......
......@@ -138,8 +138,8 @@ class Polaris(AbstractInst):
def correct_sample_vanadium(self, focused_ws, index, vanadium_ws=None):
spectra_name = "sample_ws-" + str(index + 1)
sample = mantid.CropWorkspace(InputWorkspace=focused_ws, OutputWorkspace=spectra_name,
StartWorkspaceIndex=index, EndWorkspaceIndex=index)
mantid.CropWorkspace(InputWorkspace=focused_ws, OutputWorkspace=spectra_name,
StartWorkspaceIndex=index, EndWorkspaceIndex=index)
if vanadium_ws:
van_rebinned = mantid.RebinToWorkspace(WorkspaceToRebin=vanadium_ws, WorkspaceToMatch=spectra_name)
......
......@@ -59,4 +59,3 @@ def _find_dictionary_key(dict_to_search, run_number):
return key
return None
from __future__ import (absolute_import, division, print_function)
from six.moves import xrange
import mantid.simpleapi as mantid
# --- Public API --- #
......
......@@ -91,4 +91,4 @@ def _apply_binning_to_spectra(spectra_list, binning_list):
for ws, bin_params in zip(spectra_list, binning_list):
# Starting bin edge / bin width / last bin edge
rebin_string = bin_params[0] + ',' + bin_params[1] + ',' + bin_params[2]
mantid.Rebin(InputWorkspace=ws, OutputWorkspace=ws, Params=rebin_string)
\ No newline at end of file
mantid.Rebin(InputWorkspace=ws, OutputWorkspace=ws, Params=rebin_string)
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