Skip to content

Commit a7c0af4

Browse files
committed
update g counts when binwidth=0
1 parent bfd2f2b commit a7c0af4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/param/hbos_param.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ using namespace chimbuko;
191191

192192
for (int i = 0; i < l.bin_edges().size() -1; i++) {
193193

194-
auto index_it = std::lower_bound(combined.binedges().begin(), combined.binedges().end(), l.bin_edges().at(i));
195-
if (index_it != combined.binedges().end()){
196-
const int id = std::distance(combined.binedges().begin(), index_it) - 1;
194+
auto index_it = std::lower_bound(combined.bin_edges().begin(), combined.bin_edges().end(), l.bin_edges().at(i));
195+
if (index_it != combined.bin_edges().end()){
196+
const int id = std::distance(combined.bin_edges().begin(), index_it) - 1;
197197
const int inc = l.counts().at(i);
198198
std::cout << "In l " << "id: " << id << ", inc: " << inc << std::endl;
199199
if (id >= 0 && id < combined.counts().size())

0 commit comments

Comments
 (0)