File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1135,10 +1135,13 @@ void add_spectra_to_measurement_node_in_2012_N42_xml( ::rapidxml::xml_node<char>
1135
1135
1136
1136
const string detnam = !m->detector_name ().empty () ? m->detector_name () : s_unnamed_det_placeholder;
1137
1137
1138
- // Below choice of zero compressing if the gamma sum is less than 15 times the
1139
- // number of gamma channels is arbitrarily chosen, and has not been
1140
- // benchmarked or checked it is a reasonable value
1141
- const bool zerocompressed = (!!m->gamma_counts () && (m->gamma_count_sum ()<15.0 *m->gamma_counts ()->size ()));
1138
+ // Zero compression can increase the length of the XML if there are a lot of zero channels
1139
+ // right next to non-zero channels. We could use a simple heuristic, like is commented
1140
+ // out below, to try to pick the shorter option, but for now we'll just be consistent and
1141
+ // always use it.
1142
+ // const bool zerocompressed = (!!m->gamma_counts() && (m->gamma_count_sum()<15.0*m->gamma_counts()->size()));
1143
+ const bool zerocompressed = true ;
1144
+
1142
1145
vector<float > compressedchannels;
1143
1146
1144
1147
if ( zerocompressed )
You can’t perform that action at this time.
0 commit comments