@@ -32,11 +32,9 @@ namespace {
32
32
template <typename MDE, size_t nd>
33
33
void prepareUpdate (MDBoxFlatTree &BoxFlatStruct, BoxController *bc, typename MDEventWorkspace<MDE, nd>::sptr ws,
34
34
const std::string &filename) {
35
- // remove all boxes from the DiskBuffer. DB will calculate boxes positions
36
- // on HDD.
35
+ // remove all boxes from the DiskBuffer. DB will calculate boxes positions on HDD.
37
36
bc->getFileIO ()->flushCache ();
38
- // flatten the box structure; this will remember boxes file positions in the
39
- // box structure
37
+ // flatten the box structure; this will remember boxes file positions in the box structure
40
38
BoxFlatStruct.initFlatStructure (ws, filename);
41
39
}
42
40
} // namespace
@@ -74,8 +72,7 @@ void SaveMD::init() {
74
72
75
73
// ----------------------------------------------------------------------------------------------
76
74
/* * Save the MDEventWorskpace to a file.
77
- * Based on the Intermediate Data Format Detailed Design Document, v.1.R3 found
78
- *in SVN.
75
+ * Based on the Intermediate Data Format Detailed Design Document, v.1.R3 found in SVN.
79
76
*
80
77
* @param ws :: MDEventWorkspace of the given type
81
78
*/
@@ -106,18 +103,15 @@ template <typename MDE, size_t nd> void SaveMD::doSaveEvents(typename MDEventWor
106
103
}
107
104
108
105
auto prog = std::make_unique<Progress>(this , 0.0 , 0.05 , 1 );
109
- if (updateFileBackend) // workspace has its own file and ignores any changes
110
- // to the
111
- // algorithm parameters
106
+ if (updateFileBackend) // workspace has its own file and ignores any changes to the algorithm parameters
112
107
{
113
108
if (!ws->isFileBacked ())
114
109
throw std::runtime_error (" attempt to update non-file backed workspace" );
115
110
filename = bc->getFileIO ()->getFileName ();
116
111
}
117
112
118
113
// -----------------------------------------------------------------------------------------------------
119
- // create or open WS group and put there additional information about WS and
120
- // its dimensions
114
+ // create or open WS group and put there additional information about WS and its dimensions
121
115
auto nDims = static_cast <int >(nd);
122
116
bool data_exist;
123
117
auto file =
@@ -166,8 +160,7 @@ template <typename MDE, size_t nd> void SaveMD::doSaveEvents(typename MDEventWor
166
160
// do not spend time on empty or masked boxes
167
161
if (boxe->getDataInMemorySize () == 0 || boxe->getIsMasked ())
168
162
continue ;
169
- // save boxes directly using the boxes file postion, precalculated in
170
- // boxFlatStructure.
163
+ // save boxes directly using the boxes file postion, precalculated in boxFlatStructure.
171
164
saveableTag->save ();
172
165
// remove boxes data from memory. This will actually correctly set the
173
166
// tag indicatin that data were not loaded.
0 commit comments