Skip to content

Commit 332823d

Browse files
authored
Merge pull request #19 from brain-image-library/8-new-metric-request-of-datasets-that-exist-on-bildata
Update get.py
2 parents ba9b14d + 2bebad5 commit 332823d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

braininventory/get.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ def __get_contributors(df):
151151
return df["contributorname"].unique()
152152

153153

154+
def __get_project_names(df):
155+
"""
156+
Gets the unique list of project names.
157+
158+
Input: dataframe
159+
Output: list
160+
"""
161+
return df["project"].unique()
162+
163+
154164
def __get_list_of_projects(df):
155165
"""
156166
Get the list of names for unique projects
@@ -214,6 +224,7 @@ def report():
214224
report = {}
215225
report["date"] = tdate
216226
report["number_of_datasets"] = __get_number_of_datasets(df)
227+
report["number_of_project"] = __get_number_of_projects(df)
217228
report["completeness_score"] = __get_completeness_score(df)
218229
report["metadata_version"] = __get_metadata_version(df)
219230
report["contributor"] = __get_contributor(df)
@@ -227,7 +238,7 @@ def report():
227238
report["technique"] = __get_technique(df)
228239
report["locations"] = __get_locations(df)
229240
report["percentage_of_version_1"] = __get__percentage_of_metadata_version_1(df)
230-
report["is_reachable"] = df["URL"].apply(__is_reachable)
241+
# report["is_reachable"] = df["URL"].apply(__is_reachable)
231242

232243
# plots
233244
get_projects_treemap(df)

0 commit comments

Comments
 (0)