Skip to content

Commit 168b40b

Browse files
committed
Build with rntuple sempty cluster
1 parent 30507aa commit 168b40b

4 files changed

Lines changed: 21 additions & 16 deletions

File tree

‎build/jsroot.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const version_id = 'dev',
1414

1515
/** @summary version date
1616
* @desc Release date in format day/month/year like '14/04/2022' */
17-
version_date = '14/08/2026',
17+
version_date = '20/08/2026',
1818

1919
/** @summary version id and date
2020
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -180552,7 +180552,7 @@ async function readHeaderFooter(tuple) {
180552180552
// Deserialize Page List. Get byte range of each cluster group
180553180553
const groups = tuple.builder.clusterGroups;
180554180554
if (!groups?.length)
180555-
throw new Error('No cluster groups found');
180555+
return tuple.builder; // process RNTuples with no cluster groups
180556180556

180557180557
const ranges = [];
180558180558
for (const g of groups) {
@@ -181401,6 +181401,10 @@ async function rntupleProcess(rntuple, selector, args = {}) {
181401181401
handle.items.push(item);
181402181402
}
181403181403

181404+
// no entries for empty clusters
181405+
if (builder.clusterSummaries === undefined)
181406+
return selector;
181407+
181404181408
// calculate number of entries
181405181409
builder.clusterSummaries.forEach(summary => { handle.lastentry += summary.numEntries; });
181406181410

‎changes.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1. Use `8.6g`/`10.8g` format for float/double historgam content-to-text conversion in tooltips
1212
1. Add `@vite-ignore` comment to dynamic imports to suppress Vite/Rollup analysis warnings
1313
1. Fix - read all cluster groups from ntuple #415
14+
1. Fix - correctly handle empty clusters in ntuple #420
1415

1516

1617
## Changes in 7.11.1

‎modules/core.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const version_id = 'dev',
66

77
/** @summary version date
88
* @desc Release date in format day/month/year like '14/04/2022' */
9-
version_date = '14/08/2026',
9+
version_date = '20/08/2026',
1010

1111
/** @summary version id and date
1212
* @desc Produced by concatenation of {@link version_id} and {@link version_date}

‎package-lock.json‎

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)