File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1643,5 +1643,7 @@ def _convert_TrueFalse_to_bool(dict_input):
16431643# TODO: prioritise saving of the model checkpoint (i.e. move before anything else, including the saving of model predicitons).
16441644# Because with model checkpoint, the predictions are recoverable but the reverse isn't possible.
16451645
1646+ # TODO: assert that the paths in the config files are absolute paths (and not relative paths).
1647+
16461648
16471649
Original file line number Diff line number Diff line change @@ -229,8 +229,6 @@ def try_mkdir(path_in):
229229 )
230230)
231231
232- print ("\n \n \n >>>>>>>> succesfully parsed the config files." )
233- assert False
234232
235233# TODO: parse other config files ===
236234
@@ -270,7 +268,7 @@ def try_mkdir(path_in):
270268gc .collect ()
271269
272270# set device ===
273- if config_training ['flag_use_GPU' ]:
271+ if args . flag_use_cuda : # config_training['flag_use_GPU']:
274272 if torch .cuda .is_available ():
275273 device = torch .device ("cuda:0" )
276274 else :
@@ -284,6 +282,7 @@ def try_mkdir(path_in):
284282if args .flag_verbose :
285283 print ("\n \n Device is set to {}.\n \n " .format (device ))
286284
285+
287286# Create list tissue training =========
288287
289288def _convert_TrueFalse_to_bool (dict_input ):
@@ -305,6 +304,7 @@ def _convert_TrueFalse_to_bool(dict_input):
305304
306305 return dict_input
307306
307+
308308list_slice = []
309309for dict_current_anndata in config_data_train :
310310 current_anndata = sc .read_h5ad (dict_current_anndata ['file' ])
@@ -366,6 +366,8 @@ def _convert_TrueFalse_to_bool(dict_input):
366366 print ("\n \n " )
367367
368368
369+ assert False
370+
369371# create test_list_slice for evaluation ===
370372test_list_slice = []
371373for dict_current_anndata in config_data_test :
You can’t perform that action at this time.
0 commit comments