Skip to content

Commit 26b0a90

Browse files
committed
Add decompress_threads parameter to .xarray() as well
1 parent bcc61ad commit 26b0a90

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

extra_data/components.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,13 @@ def _wrap_xarray(self, arr, subtrain_index='pulseId'):
13041304
})
13051305

13061306
def xarray(self, *, pulses=None, fill_value=None, roi=(), astype=None,
1307-
subtrain_index='pulseId', unstack_pulses=False):
1308-
arr = self.ndarray(fill_value=fill_value, roi=roi, astype=astype)
1307+
subtrain_index='pulseId', unstack_pulses=False, decompress_threads=1):
1308+
arr = self.ndarray(
1309+
fill_value=fill_value,
1310+
roi=roi,
1311+
astype=astype,
1312+
decompress_threads=decompress_threads,
1313+
)
13091314
out = self._wrap_xarray(arr, subtrain_index)
13101315

13111316
if unstack_pulses:

0 commit comments

Comments
 (0)