Skip to content

Commit

Permalink
fix reading chunked dataset where btree address has not been allocate…
Browse files Browse the repository at this point in the history
…d yet (empty)
  • Loading branch information
bmaranville committed Jan 27, 2023
1 parent e26caee commit f228420
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions esm/dataobjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ export class DataObjects {
_get_chunked_data(offset) {
//""" Return data which is chunked. """
this._get_chunk_params();
if (this._chunk_address == UNDEFINED_ADDRESS) {
return [];
}
var chunk_btree = new BTreeV1RawDataChunks(
this.fh, this._chunk_address, this._chunk_dims);
let data = chunk_btree.construct_data_from_chunks(
Expand Down

0 comments on commit f228420

Please sign in to comment.