-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into fix_nan_id_counts
- Loading branch information
Showing
2 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -530,7 +530,7 @@ def compute_region_volumes( | |
) | ||
|
||
ids, counts = np.unique(annotation, return_counts=True) | ||
result.update(pd.Series(counts * voxel_volume, index=ids).rename("id_volume")) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mgeplf
Author
Collaborator
|
||
result["id_volume"].update(pd.Series(counts * voxel_volume, index=ids)) | ||
|
||
volumes = [] | ||
for id_ in hierarchy_info.index: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I had added the rename method, because removing it will be give you the following warning -
I think it better to keep the rename method.