def is_sliceable(workspace): ws = get_workspace_handle(workspace) if isinstance(ws, PixelWorkspace): return True else: validator = WorkspaceUnitValidator('DeltaE') return isinstance(ws, Workspace) and validator.isValid(ws.raw_ws) == ''
def is_sliceable(workspace): ws = get_workspace_handle(workspace) if isinstance(ws, PixelWorkspace): return True else: validator = WorkspaceUnitValidator('DeltaE') return isinstance(ws, Workspace) and validator.isValid(ws.raw_ws) == ''
def is_cuttable(workspace): workspace = get_workspace_handle(workspace) try: is2D = workspace.raw_ws.getNumDims() == 2 except AttributeError: is2D = False if not is2D: return False if isinstance(workspace, PixelWorkspace): return True else: validator = WorkspaceUnitValidator('DeltaE') return isinstance(workspace, Workspace2D) and validator.isValid(workspace.raw_ws) == ''
def is_cuttable(workspace): workspace = get_workspace_handle(workspace) try: is2D = workspace.raw_ws.getNumDims() == 2 except AttributeError: is2D = False if not is2D: return False if isinstance(workspace, PixelWorkspace): return True else: validator = WorkspaceUnitValidator('DeltaE') return isinstance(workspace, Workspace2D) and validator.isValid( workspace.raw_ws) == ''