From 3ae187a5f219be90affb69649b7d87caade9bbc2 Mon Sep 17 00:00:00 2001 From: Shibu Meher <56470750+Shibu778@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:59:26 +0530 Subject: [PATCH] fixed bug in _parse_scalar --- src/py4vasp/_raw/data_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py4vasp/_raw/data_wrapper.py b/src/py4vasp/_raw/data_wrapper.py index d7a47d09..a2cdb85c 100644 --- a/src/py4vasp/_raw/data_wrapper.py +++ b/src/py4vasp/_raw/data_wrapper.py @@ -97,5 +97,5 @@ def astype(self, *args, **kwargs): def _parse_scalar(data): if data.dtype.type == np.bytes_: - data = data[()].decode() + data = data.decode() return np.array(data)