@@ -21,9 +21,10 @@ func AddHandleFunc() {
2121 Utils .CreateHandleFunc (prePath + "/create_tags/" , handleCreateTags )
2222 Utils .CreateHandleFunc (prePath + "/delete_tag_from_column/" , handleDeleteTagFromColumn )
2323 Utils .CreateHandleFunc (prePath + "/handle_pkl/" , handlePKL )
24+ Utils .CreateHandleFunc (prePath + "/create_group_DB/" , handleCreateGroupDB )
25+ Utils .CreateHandleFunc (prePath + "/delete_row_tag_DB/" , handleDeleteRowTagDB )
2426}
2527
26-
2728// handleMerge handles the request to merge the datasets for the DB
2829// It returns the response from the python script
2930func handleMergeDB (jsonConfig string , id string ) (string , error ) {
@@ -60,7 +61,6 @@ func handleCleanDB(jsonConfig string, id string) (string, error) {
6061 return response , nil
6162}
6263
63-
6464// handleComputeEigenvaluesDB handles the request to compute the eigenvalues for the DB
6565// It returns the response from the python script
6666func handleComputeEigenvaluesDB (jsonConfig string , id string ) (string , error ) {
@@ -73,7 +73,6 @@ func handleComputeEigenvaluesDB(jsonConfig string, id string) (string, error) {
7373 return response , nil
7474}
7575
76-
7776// handleCreatePCADB handles the request to compute pca for the db
7877// It returns the response from the python script
7978func handleCreatePCADB (jsonConfig string , id string ) (string , error ) {
@@ -86,7 +85,6 @@ func handleCreatePCADB(jsonConfig string, id string) (string, error) {
8685 return response , nil
8786}
8887
89-
9088// handleApplyPCA handles the request to compute pca with DB
9189// It returns the response from the python script
9290func handleApplyPCADB (jsonConfig string , id string ) (string , error ) {
@@ -99,7 +97,6 @@ func handleApplyPCADB(jsonConfig string, id string) (string, error) {
9997 return response , nil
10098}
10199
102-
103100// handleComputeCorrelations handles the request to compute correlations for the DB
104101// It returns the response from the python script
105102func handleComputeCorrelationsDB (jsonConfig string , id string ) (string , error ) {
@@ -112,7 +109,6 @@ func handleComputeCorrelationsDB(jsonConfig string, id string) (string, error) {
112109 return response , nil
113110}
114111
115-
116112// handleComputeSpearman handles the request to compute Spearman for the DB
117113// It returns the response from the python script
118114func handleComputeSpearmanDB (jsonConfig string , id string ) (string , error ) {
@@ -125,7 +121,6 @@ func handleComputeSpearmanDB(jsonConfig string, id string) (string, error) {
125121 return response , nil
126122}
127123
128-
129124// handleProgress handles the request to get the progress of the experiment
130125// It returns the progress of the experiment
131126func handleProgress (jsonConfig string , id string ) (string , error ) {
@@ -174,3 +169,27 @@ func handlePKL(jsonConfig string, id string) (string, error) {
174169 }
175170 return response , nil
176171}
172+
173+ // handleCreateGroupDB handles the request to create the group for the DB
174+ // It returns the response from the python script
175+ func handleCreateGroupDB (jsonConfig string , id string ) (string , error ) {
176+ log .Println ("Create Group DB" , id )
177+ response , err := Utils .StartPythonScripts (jsonConfig , "../pythonCode/modules/input/create_group_DB.py" , id )
178+ Utils .RemoveIdFromScripts (id )
179+ if err != nil {
180+ return "" , err
181+ }
182+ return response , nil
183+ }
184+
185+ // deleteRowTagDB handles the request to delete the row tag for the DB
186+ // It returns the response from the python script
187+ func handleDeleteRowTagDB (jsonConfig string , id string ) (string , error ) {
188+ log .Println ("Delete Row Tag DB" , id )
189+ response , err := Utils .StartPythonScripts (jsonConfig , "../pythonCode/modules/input/delete_row_tag_DB.py" , id )
190+ Utils .RemoveIdFromScripts (id )
191+ if err != nil {
192+ return "" , err
193+ }
194+ return response , nil
195+ }
0 commit comments