Skip to content

Commit

Permalink
Refs mantidproject#19406. Fixed issues from Martyn's comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jul 25, 2017
1 parent e292183 commit 253f331
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
10 changes: 1 addition & 9 deletions Framework/Algorithms/inc/MantidAlgorithms/FilterEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class DLLExport FilterEvents : public API::Algorithm {
}

private:
friend struct Mantid::Kernel::CreateUsingNew<FilterEvents>;

// Implement abstract Algorithm methods
void init() override;
// Implement abstract Algorithm methods
Expand Down Expand Up @@ -141,22 +139,16 @@ class DLLExport FilterEvents : public API::Algorithm {
/// Run object
std::vector<std::string> getTimeSeriesLogNames();

// Kernel::TimeSplitterType generateSplitters(int wsindex);

void generateSplitterTSP(
std::vector<Kernel::TimeSeriesProperty<int> *> &split_tsp_vec);

void generateSplitterTSPalpha(
std::vector<Kernel::TimeSeriesProperty<int> *> &split_tsp_vec);

///
/// Add time series property 'Splitter' to each child workspace
void mapSplitterTSPtoWorkspaces(
const std::vector<Kernel::TimeSeriesProperty<int> *> &split_tsp_vec);

// void splitTSPLogInPlace(DataObjects::EventWorkspace_sptr eventws,
// std::string logname,
// Kernel::TimeSplitterType &splitters);

void copyNoneSplitLogs(
std::vector<Kernel::TimeSeriesProperty<int> *> &int_tsp_name_vector,
std::vector<Kernel::TimeSeriesProperty<double> *> &dbl_tsp_name_vector,
Expand Down
9 changes: 0 additions & 9 deletions Framework/Algorithms/src/GenerateEventsFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,15 +889,6 @@ void GenerateEventsFilter::makeFilterBySingleValue(
addNewTimeFilterSplitter(start, stop, wsindex, empty);
}

// add the row for information table workspace
// std::stringstream infoss;
// infoss << "DaDa Log." << m_dblLog->name() << ".From." << min << ".To." <<
// max
// << ".Direction=Increase" << filterIncrease << "DirectionDecrease="
// << filterDecrease;
// API::TableRow row = m_filterInfoWS->appendRow();
// row << wsindex << infoss.str();

return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def _loadAndSum(self, filename_list, outName):

# Normalize by current with new name
if self._normalisebycurrent is True:
self.log().warning('[SPECIAL DB] Normalize current to workspace %s' % sample_ws_name)
self.log().information('Normalize current to workspace %s' % sample_ws_name)
# temp_ws = self.get_workspace(sample_ws_name)
if not (is_event_workspace(sample_ws_name) and get_workspace(sample_ws_name).getNumberEvents() == 0):
api.NormaliseByCurrent(InputWorkspace=sample_ws_name,
Expand Down Expand Up @@ -891,9 +891,6 @@ def _focusChunks(self, filename, filter_wall=(0.,0.), # noqa
ReductionProperties="__snspowderreduction",
**self._focusPos)
# logging (ignorable)
#for iws in range(out_ws_c_s.getNumberHistograms()):
# spec = out_ws_c_s.getSpectrum(iws)
# self.log().debug("[DBx131] ws %d: spectrum No = %d. " % (iws, spec.getSpectrumNo()))
if is_event_workspace(out_ws_name_chunk_split):
self.log().information('After being aligned and focused, workspace %s: Number of events = %d '
'of chunk %d ' % (out_ws_name_chunk_split,
Expand Down Expand Up @@ -1474,7 +1471,6 @@ def _split_workspace(self, raw_ws_name, split_ws_name):
SplitterWorkspace=split_ws_name, GroupWorkspaces=True, RelativeTime=is_relative_time)
else:
# split with information table
self.log().notice('[DB...BAT] Raw Name: {0}. Base Name: {1}'.format(raw_ws_name, base_name))
api.FilterEvents(InputWorkspace=raw_ws_name, OutputWorkspaceBaseName=base_name,
SplitterWorkspace=split_ws_name, InformationWorkspace=str(self._splitinfotablews),
GroupWorkspaces=True, RelativeTime=is_relative_time)
Expand Down

0 comments on commit 253f331

Please sign in to comment.