Skip to content

Commit 6df8d3e

Browse files
authored
Update get.py
1 parent 343f53f commit 6df8d3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

braininventory/get.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def __get_general_modality_treemap(df):
6969

7070
plt.show()
7171

72+
import humanize
73+
74+
def __get_pretty_size_statistics(df):
75+
size_stats = __get_size_statistics(df)
76+
77+
return [humanize.naturalsize(size_stats[0]), humanize.naturalsize(size_stats[1]), humanize.naturalsize(size_stats[2]), humanize.naturalsize(size_stats[3])]
78+
7279
def __get_size_statistics(df):
7380
'''
7481
Helper method that returns size statistics from size column.

0 commit comments

Comments
 (0)