Ticket #1394 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Implement facility speficic settings

Reported by: Nick Draper Owned by: Roman Tolchenov
Priority: major Milestone: Iteration 24
Component: Keywords:
Cc: campbellsi@… Blocked By:
Blocking: Tester: Michael Whitty

Description

create a InstrumentDir\Facilities.xml file.

<facilities>
<facility name="ISIS" zeropadding="5" FileExtensions="nxs,raw,sav,n*,s*">
  <archive>
    <archiveSearch plugin="ISISDataSearch" />
  </archive>

  <instrument name="HRPD" shortname="HRP">  
    <technique name="Powder Diffraction" />
  </instrument>
  <instrument name="WISH" zeropadding="8">
    <technique name="Powder Diffraction" />
    <technique name="Single Crystal Diffraction" />
  </instrument>
</facility>
<facility name="SNS">
...
</facility>
</Facilites>

This should be loaded and accesible through the config service. examples

ConfigService.Facility.Instruments()
ConfigService.Facility.Instruments("Powder Diffraction").ShortName()
ConfigService.Facilities("ISIS").ZeroPadding()

Attachments

instrumentlist.xml (6.7 KB) - added by Stuart Campbell 10 years ago.
Current SNS instrument XML file that is in production use.

Change History

comment:1 Changed 10 years ago by Stuart Campbell

  • Cc campbellsi@… added

This looks similar in intent to #1388.

Changed 10 years ago by Stuart Campbell

Current SNS instrument XML file that is in production use.

comment:2 Changed 10 years ago by Roman Tolchenov

(In [5331]) Added Facilities.xml and methods to read from it to ConfigService. re #1394

comment:3 Changed 10 years ago by Roman Tolchenov

(In [5333]) I guess that g++ is unhappy about having const string as the template argument for vector/set. re #1394

comment:4 Changed 10 years ago by Roman Tolchenov

(In [5356]) A nicer exit from Mantidplot when Facilities.xml file not found. re #1394

comment:5 Changed 10 years ago by Roman Tolchenov

(In [5362]) Fixing a bug introduced in the previous check in. re #1394

comment:6 Changed 10 years ago by Roman Tolchenov

  • Status changed from new to accepted

comment:7 Changed 10 years ago by Roman Tolchenov

  • Status changed from accepted to verify

comment:8 Changed 10 years ago by Nick Draper

  • Resolution set to fixed

fill in missing resolution

comment:9 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester set to Michael Whitty

comment:10 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

works as of 5912 - lack of Facilities.xml file at startup gives readable error on crash.

comment:11 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2241

Note: See TracTickets for help on using tickets.