Skip to content

Commit

Permalink
Refs #6568 add remove-used-banks parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Feb 13, 2013
1 parent 48e30a0 commit 8de375e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1516,10 +1516,10 @@ void LoadEventNexus::loadEvents(API::Progress * const prog, const bool monitors)
}

prog->report("Initializing all pixels");

// Remove used banks if parameter is set
if (WS->getInstrument()->hasParameter("remove-unused-banks")) deleteBanks(WS, bankNames);
//----------------- Pad Empty Pixels -------------------------------
// Create the required spectra mapping so that the workspace knows what to pad to
deleteBanks(WS, bankNames);
createSpectraMapping(m_filename, WS, monitors, onebank);
WS->padSpectra();

Expand Down
14 changes: 14 additions & 0 deletions Code/Mantid/instrument/TOPAZ_Parameters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<parameter-file instrument = "TOPAZ" date = "2012-08-23T00:00:01">

<component-link name = "TOPAZ">

<!-- Specify that any banks not in NeXus file are to be removed -->
<parameter name="remove-unused-banks">
<value val="1"/>
</parameter>

</component-link>

</parameter-file>

0 comments on commit 8de375e

Please sign in to comment.