File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Framework/PythonInterface Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
Defines a set of aliases to make accessing certain objects easier
9
9
"""
10
10
11
+ import sys
12
+
11
13
from mantid .api import (
12
14
AlgorithmFactoryImpl ,
13
15
AlgorithmManagerImpl ,
42
44
FunctionFactory = lazy_instance_access (FunctionFactoryImpl )
43
45
WorkspaceFactory = lazy_instance_access (WorkspaceFactoryImpl )
44
46
CatalogManager = lazy_instance_access (CatalogManagerImpl )
45
- AlgoTimeRegister = lazy_instance_access (AlgoTimeRegisterImpl )
47
+ if sys .platform .startswith ("linux" ):
48
+ AlgoTimeRegister = lazy_instance_access (AlgoTimeRegisterImpl )
46
49
47
50
# backwards-compatible
48
51
mtd = AnalysisDataService
Original file line number Diff line number Diff line change 11
11
import os
12
12
13
13
from mantid .kernel import amend_config
14
- from mantid .api import AlgoTimeRegister
15
14
from mantid .simpleapi import CreateSampleWorkspace , Max
16
15
import threading
17
16
17
+ if sys .platform .startswith ("linux" ):
18
+ from mantid .api import AlgoTimeRegister
18
19
19
20
def get_recorded_timedata (filename ):
20
21
with open (filename , "r" ) as f :
You can’t perform that action at this time.
0 commit comments