Skip to content

Commit 569a9e2

Browse files
authored
Merge pull request #32 from brain-image-library/31-new-metric-request-frequency-of-generalmodality
Update get.py
2 parents b0f67f0 + d556755 commit 569a9e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

braininventory/get.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
from datetime import date
3-
import urllib.request
4-
import matplotlib.pyplot as plt
3+
54
import humanize
65
import matplotlib.pyplot as plt
76
import pandas as pd
@@ -849,6 +848,10 @@ def get_projects_treemap(df):
849848
plt.savefig(filename)
850849

851850

851+
def __get_modalities(df):
852+
return (df["generalmodality"].value_counts()).to_dict()
853+
854+
852855
def __get__percentage_of_metadata_version_1(df):
853856
"""
854857
Get the percentage/ratio of metadata version 1 from all datasets

0 commit comments

Comments
 (0)