Skip to content

Commit 655fd57

Browse files
update
1 parent 677b47d commit 655fd57

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

cli/inflow_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

cli/mintflow_cli_recover_outputs.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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):
270268
gc.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):
284282
if args.flag_verbose:
285283
print("\n\nDevice is set to {}.\n\n".format(device))
286284

285+
287286
# Create list tissue training =========
288287

289288
def _convert_TrueFalse_to_bool(dict_input):
@@ -305,6 +304,7 @@ def _convert_TrueFalse_to_bool(dict_input):
305304

306305
return dict_input
307306

307+
308308
list_slice = []
309309
for 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 ===
370372
test_list_slice = []
371373
for dict_current_anndata in config_data_test:

0 commit comments

Comments
 (0)