From 885beaad67ce17caa8b16063bfb0ebe1c06bf5a2 Mon Sep 17 00:00:00 2001 From: Amirhossein Naghsh Nilchi Date: Thu, 1 Aug 2024 19:38:10 +0200 Subject: [PATCH] fix h5ad metadata --- lib/galaxy/datatypes/binary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/datatypes/binary.py b/lib/galaxy/datatypes/binary.py index 4bcb3f8488a5..31b2753f455e 100644 --- a/lib/galaxy/datatypes/binary.py +++ b/lib/galaxy/datatypes/binary.py @@ -1505,7 +1505,7 @@ def _layercountsize(tmp, lennames=0): count = len(tmp.dtype) size = int(tmp.size) else: - layers = list(tmp.attrs) + layers = list(tmp.keys()) count = len(layers) size = lennames return (layers, count, size) @@ -4649,4 +4649,4 @@ def display_peek(self, dataset: DatasetProtocol) -> str: try: return dataset.peek except Exception: - return f"Binary numpy file ({nice_size(dataset.get_size())})" + return f"Binary numpy file ({nice_size(dataset.get_size())})" \ No newline at end of file