Skip to content

Commit

Permalink
Merge pull request #104 from lilab-bcb/boli
Browse files Browse the repository at this point in the history
Fixed a bug in zarr_utils for writing results
  • Loading branch information
bli25 committed Apr 6, 2023
2 parents 8ba993a + 0be4d12 commit ffcf859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pegasusio/zarr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def write_series(self, group: zarr.Group, name: str, array: np.ndarray) -> None:
self.write_array(categories, name, values)
# write codes
codes_arr = group.create_dataset(name, data = array.codes, shape = array.codes.shape, chunks = calc_chunk(array.codes.shape), dtype = array.codes.dtype, compressor = COMPRESSOR, overwrite = True, write_empty_chunks = self.write_empty_chunks)
codes_arr.attrs['ordered'] = array.ordered
codes_arr.attrs['ordered'] = bool(array.ordered)
else:
self.write_array(group, name, array)

Expand Down

0 comments on commit ffcf859

Please sign in to comment.