Skip to content
Snippets Groups Projects
Commit bc2bc13f authored by ='s avatar =
Browse files

save atlas dict / mesh obj

parent 824b1dcf
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,10 @@ def save_atlas(
maxshape=(3, number_of_maps**3),
dtype=np.float32,
)
mesh_list_dict = list(map(to_dict, mesh_list))
if isinstance(mesh_list, dict):
mesh_list_dict = mesh_list
else:
mesh_list_dict = list(map(to_dict, mesh_list))
file.attrs["mesh_list"] = json.dumps(mesh_list_dict)
projection[:] = maps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment