Skip to content

Commit c091496

Browse files
author
Ivan Cao-Berg
committed
Fixed bug in login functionality. Increased performance of search algorithm.
Improved error handling. Added new feature for user authentication.
1 parent 8552c83 commit c091496

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

braininventory/get.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,18 @@ def __get_cnbtaxonomy(df):
7171
return df["cnbtaxonomy"].value_counts().to_dict()
7272

7373

74-
def __get_samplelocalid(df):
75-
return df["samplelocalid"].value_counts().to_dict()
74+
def __get_genotypes(df):
75+
"""
76+
Write documentation here.
77+
"""
78+
return df["genotype"].unique()
7679

7780

78-
def __get_genotype(df):
79-
return df["genotype"].value_counts().to_dict()
81+
def __get_genotype_frequency(df):
82+
"""
83+
Write documentation here.
84+
"""
85+
return df["genotypes"].value_counts().to_dict()
8086

8187

8288
def __get_generalmodality(df):
@@ -98,16 +104,6 @@ def __get_contributors(df):
98104
return df["contributorname"].unique()
99105

100106

101-
def __get_project_names(df):
102-
"""
103-
Gets the unique list of project names.
104-
105-
Input: dataframe
106-
Output: list
107-
"""
108-
return df["project"].unique()
109-
110-
111107
def __get_list_of_projects(df):
112108
"""
113109
Get the list of names for unique projects
@@ -139,12 +135,6 @@ def report():
139135

140136
df = today()
141137

142-
def __get_genotype_frequency(df):
143-
"""
144-
Write documentation here.
145-
"""
146-
return df["genotypes"].value_counts().to_dict()
147-
148138
report = {}
149139
report["date"] = tdate
150140
report["number_of_datasets"] = __get_number_of_datasets(df)

0 commit comments

Comments
 (0)