From 73325c1d49fdd11f424f9daf7ff50b12525e28c3 Mon Sep 17 00:00:00 2001 From: Nick Negretti Date: Fri, 13 Aug 2021 14:58:03 -0500 Subject: [PATCH] Change names to include preceeding folder --- README.md | 2 +- readlif/reader.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f65d95..7c84bc4 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Changelog ====== #### 0.6.2 - Fixed bug where the time and image scale were calculated incorrectly -- Clarified scaling documentation documentation +- Clarified scaling documentation #### 0.6.1 diff --git a/readlif/reader.py b/readlif/reader.py index 429de27..0472214 100755 --- a/readlif/reader.py +++ b/readlif/reader.py @@ -652,12 +652,12 @@ def _recursive_image_find(self, tree, return_list=None, path=""): "dims_n": dims_dict, "scale_n": scale_dict, "path": str(path + "/"), - "name": item.attrib["Name"], + "name": '/'.join((str(path + "/") + item.attrib["Name"]).split("/")[1:]), "channels": n_channels, "scale": (scale_x, scale_y, scale_z, scale_t), "bit_depth": bit_depth, "mosaic_position": m_pos_list, - # "metadata_xmlroot": metadata_xmlroot + # "metadata_xml": item } return_list.append(data_dict)