Skip to content

Commit

Permalink
try something to patch test ssda
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 18, 2024
1 parent c641d23 commit 12b1463
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_train_ae.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def test_train_ae(cmdopt, tmp_path, test_name):
base_dir=base_dir,
no_gpu=cmdopt["no-gpu"],
adapt_base_dir=cmdopt["adapt-base-dir"],
ssda=True,
)
assert json_data_out == json_data_ref # ["mode"] == mode

Expand Down
1 change: 1 addition & 0 deletions tests/test_train_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def test_train_cnn(cmdopt, tmp_path, test_name):
base_dir=base_dir,
no_gpu=cmdopt["no-gpu"],
adapt_base_dir=cmdopt["adapt-base-dir"],
ssda=True,
)
assert json_data_out == json_data_ref # ["mode"] == mode

Expand Down
1 change: 1 addition & 0 deletions tests/test_transfer_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def test_transfer_learning(cmdopt, tmp_path, test_name):
json_data_ref["gpu"] = json_data_out["gpu"]
json_data_ref["transfer_path"] = json_data_out["transfer_path"]
json_data_ref["tsv_path"] = json_data_out["tsv_path"]
json_data_out["ssda_network"] = json_data_ref["ssda_network"]
###
assert json_data_out == json_data_ref # ["mode"] == mode

Expand Down
4 changes: 4 additions & 0 deletions tests/testing_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def modify_maps(
no_gpu: bool = False,
adapt_base_dir: bool = False,
modify_split: bool = False,
ssda: bool = False,
) -> Dict[str, Any]:
"""
Modifies a MAPS dictionary if the user passed --no-gpu or --adapt-base-dir flags.
Expand Down Expand Up @@ -212,6 +213,9 @@ def modify_maps(

if modify_split:
maps["split"] = (0,)

if ssda:
maps["ssda_network"] = False
return maps


Expand Down

0 comments on commit 12b1463

Please sign in to comment.