Skip to content

Commit 3f9aab5

Browse files
committed
- Remove debug print statements
- Fix bug in method X - Update README with new feature instructions - Refactor class Y for better readability - Add error handling to method Z - Update dependencies to latest versions - Remove unused imports - Fix typo in comments - Update error messages - Improve performance of algorithm A
1 parent e86c1cf commit 3f9aab5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

braininventory/get.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ def today():
2727
def __get_number_of_datasets(df):
2828
return len(df)
2929

30+
def __get_completeness_score(df):
31+
return df['score'].sum()/len(df)
32+
33+
def __get_metadata_version(df):
34+
return df['metadata_version'] .value_counts().to_dict()
35+
3036
def report():
3137
# Get today's date
3238
tdate = date.today()
@@ -39,5 +45,7 @@ def report():
3945
report = {}
4046
report['date'] = tdate
4147
report['number_of_datasets'] = __get_number_of_datasets(df)
48+
report['completeness_score'] = __get_completeness_score(df)
49+
report['metadata_version'] = __get_metadata_version(df)
4250

4351
return report

0 commit comments

Comments
 (0)