Skip to content

Commit

Permalink
fix undefined coordinate map unions for multiple union map creations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed Jan 3, 2022
1 parent b975751 commit f3c5544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Handles an emtpy tensor for convolution (issue #384)
- When `coordinates` is provided in `MinkowskiToSparseTensor`, `remove_zeros` will be ignored (issue #387)
- Pybind equality error from the package (issue #414)
- Fix undefined coordinate merge for multiple coordinate unions

## [0.5.4]

Expand Down
3 changes: 2 additions & 1 deletion src/coordinate_map_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,8 @@ CoordinateMapManager<coordinate_type, coordinate_field_type, TemplatedAllocator,
}

// Create a merged map with the smallest tensor stride
coordinate_map_key_type merged_map_key(merged_map_tensor_stride, "merge");
coordinate_map_key_type merged_map_key =
get_random_string_id(merged_map_tensor_stride, "merge");
map_type const &map = m_coordinate_maps.find(map_keys[0])->second;
map_type merged_map = map.merge(maps);
insert(merged_map_key, merged_map);
Expand Down

0 comments on commit f3c5544

Please sign in to comment.