File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
import psutil
14
14
import pyinotify
15
15
from mantid .kernel import InstrumentInfo
16
- from mantid .simpleapi import mtd , StartLiveData
16
+ from mantid .simpleapi import StartLiveData , mtd
17
17
from mantid .utils .logging import log_to_python as mtd_log_to_python
18
18
from packaging .version import parse as parse_version
19
19
@@ -225,11 +225,11 @@ def __getSetInstrument(self, instrument: str) -> InstrumentInfo:
225
225
# set the facility if not the default
226
226
if facility != ConfigService .getFacility ().name ():
227
227
ConfigService .setFacility (facility )
228
- self .logger .info (f"Default Facility set to { str ( facility ) } " )
228
+ self .logger .info (f"Default Facility set to { facility !s } " )
229
229
# set the instrument if not the default. Prefer `str(inst)` over `inst.name()`
230
230
if str (instrument_instance ) != str (ConfigService .getInstrument ()):
231
231
ConfigService ["default.instrument" ] = str (instrument_instance )
232
- self .logger .info (f"Default Instrument set to { str ( instrument_instance ) } " )
232
+ self .logger .info (f"Default Instrument set to { instrument_instance !s } " )
233
233
return instrument_instance
234
234
except ImportError :
235
235
self .logger .error ("Failed to import mantid.ConfigService" , exc_info = True )
You can’t perform that action at this time.
0 commit comments