From 08a03f89ff8142efee96e86d68f5e2c16f141e6a Mon Sep 17 00:00:00 2001 From: Philipp Schubert <phil.jo.schubert@gmail.com> Date: Mon, 29 Nov 2021 14:43:14 +0100 Subject: [PATCH] store cs_ids in cs_ssv attribute dicts; compress cs_ssv meshes to save disk space --- syconn/extraction/cs_processing_steps.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/syconn/extraction/cs_processing_steps.py b/syconn/extraction/cs_processing_steps.py index 61045d38..8bf8f51a 100755 --- a/syconn/extraction/cs_processing_steps.py +++ b/syconn/extraction/cs_processing_steps.py @@ -694,7 +694,7 @@ def _combine_and_split_cs_thread(args): cs_ssv_id = base_id attr_dc = AttributeDict(base_dir + "/attr_dict.pkl", read_only=False) - mesh_dc = MeshStorage(base_dir + "/mesh.pkl", read_only=False) + mesh_dc = MeshStorage(base_dir + "/mesh.pkl", read_only=False, compress=True) # iterate over cell partners and their contact site IDs (each contact site is between two supervoxels # of the partner cells) @@ -730,8 +730,7 @@ def _combine_and_split_cs_thread(args): csssv_attr_dc["mesh_area"] = cs_ssv.mesh_area csssv_attr_dc["bounding_box"] = cs_ssv.mesh_bb // scaling csssv_attr_dc["rep_coord"] = seghelp.calc_center_of_mass(mesh_cc[1].reshape((-1, 3))) // scaling - # TODO: PS remove - raise() + csssv_attr_dc["cs_ids"] = list(cs_ids) # create open3d mesh instance to compute volume # # TODO: add this as soon open3d >= 0.11 is supported (glibc error on cluster prevents upgrade) # tm = o3d.geometry.TriangleMesh -- GitLab