From 14799db116b7d874c59c5cbbc2a6562eeb4b591c Mon Sep 17 00:00:00 2001 From: d-laub Date: Tue, 21 Oct 2025 20:13:31 -0700 Subject: [PATCH] fix: wrong shape of Ragged[bytes].to_numpy() --- python/seqpro/rag/_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/seqpro/rag/_array.py b/python/seqpro/rag/_array.py index 93fe0c1..5adaa26 100644 --- a/python/seqpro/rag/_array.py +++ b/python/seqpro/rag/_array.py @@ -223,7 +223,7 @@ def to_numpy(self, allow_missing: bool = False) -> NDArray[RDTYPE]: """Note: not zero-copy if offsets or data are non-contiguous.""" arr = super().to_numpy(allow_missing=allow_missing) if self.dtype.type == np.bytes_: - arr = arr.view("S1") + arr = arr[:, None].view("S1") return arr def __getitem__(self, where):