Skip to content
Snippets Groups Projects
Commit c7abb5df authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

test with real data

parent 6f342c67
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ from . import JassTestCase ...@@ -13,7 +13,7 @@ from . import JassTestCase
class TestPlots(JassTestCase): class TestPlots(JassTestCase):
test_folder = "data_test1" test_folder = "data_real"
def setUp(self): def setUp(self):
# Create a temporary directory # Create a temporary directory
......
...@@ -21,7 +21,7 @@ class TestWorkTable(object): ...@@ -21,7 +21,7 @@ class TestWorkTable(object):
cls.test_dir = tempfile.mkdtemp() cls.test_dir = tempfile.mkdtemp()
init_file_path = cls.get_file_path_fn("initTable.hdf5") init_file_path = cls.get_file_path_fn("initTable.hdf5")
cls.result_hdf_path = os.path.join(cls.test_dir, "test_worktable.hdf5") cls.result_hdf_path = os.path.join(cls.test_dir, "test_worktable.hdf5")
cls.expected_hdf_path = cls.get_file_path_fn("worktable.hdf5") cls.expected_hdf_path = cls.get_file_path_fn(f"worktable{'-nonans' if cls.remove_nan else '-withnans'}.hdf5")
# with coerce_pickle_protocol(4): # with coerce_pickle_protocol(4):
create_worktable_file( create_worktable_file(
cls.phenotypes_sel, init_file_path, cls.result_hdf_path, cls.remove_nan cls.phenotypes_sel, init_file_path, cls.result_hdf_path, cls.remove_nan
...@@ -84,21 +84,16 @@ class TestWorkTable(object): ...@@ -84,21 +84,16 @@ class TestWorkTable(object):
) )
phenotypes_disney = ["z_DISNEY_POCAHONT", "z_DISNEY_RATATOUY"] phenotypes_real = [
phenotypes_cars = [ "z_MAGIC_FAST-GLUCOSE",
"z_BMW_ISETTA", "z_MAGIC_FAST-INSULIN",
"z_BMW_MINI", "z_MAGIC_GLUCOSE-TOLERANCE",
"z_FIAT_CINQCENT", "z_MAGIC_HBA1C",
"z_FIAT_CINQUECENTO",
"z_MERCO_SMART",
"z_TATA_TATANANO",
] ]
params = [ params = [
("nonans", "data_test1", phenotypes_disney, True), ("nonans", "data_real", phenotypes_real, True),
("withnans", "data_test2", phenotypes_cars, False), ("withnans", "data_real", phenotypes_real, False),
# ("nonans", "data_test1_37", phenotypes_disney, True),
# ("withnans", "data_test2_37", phenotypes_cars, False),
] ]
for name, param, phenotypes_sel, remove_nan in params: for name, param, phenotypes_sel, remove_nan in params:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment