def test_visualization_replicates(data_file_Isensee, condition_file_Isensee, vis_spec_file_Isensee_replicates, simulation_file_Isensee): plot_with_vis_spec(vis_spec_file_Isensee_replicates, condition_file_Isensee, data_file_Isensee, simulation_file_Isensee)
def test_visualization_minimal_data_file(data_file_Fujita_minimal, condition_file_Fujita, visu_file_Fujita_wo_dsid_wo_yvalues): """ Test visualization, with the case: data file only with mandatory columns (optional columns are optional) """ plot_with_vis_spec(visu_file_Fujita_wo_dsid_wo_yvalues, condition_file_Fujita, data_file_Fujita_minimal)
def test_visualization_empty_visu_file(data_file_Fujita, condition_file_Fujita, visu_file_Fujita_empty): """ Test: Empty visualization specification file should default to routine for no file at all """ plot_with_vis_spec(visu_file_Fujita_empty, condition_file_Fujita, data_file_Fujita)
def test_visualization_minimal_visu_file(data_file_Fujita, condition_file_Fujita, visu_file_Fujita_minimal): """ Test: visualization specification file only with mandatory column plotId (optional columns are optional) """ plot_with_vis_spec(visu_file_Fujita_minimal, condition_file_Fujita, data_file_Fujita)
def test_visualization_small_visu_file_w_datasetid(data_file_Fujita, condition_file_Fujita, visu_file_Fujita_small): """ Test: visualization specification file only with few columns in particular datasetId (optional columns are optional) """ plot_with_vis_spec(visu_file_Fujita_small, condition_file_Fujita, data_file_Fujita)
def test_visualization_small_visu_file_wo_datasetid( data_file_Fujita, condition_file_Fujita, visu_file_Fujita_wo_dsid_wo_yvalues): """ Test: visualization specification file only with few columns in particular no datasetId column (optional columns are optional) """ plot_with_vis_spec(visu_file_Fujita_wo_dsid_wo_yvalues, condition_file_Fujita, data_file_Fujita)
def test_visualization_all_obs_with_diff_settings( data_file_Fujita, condition_file_Fujita, visu_file_Fujita_all_obs_with_diff_settings): """ Test: visualization specification file only with few columns. In particular, no datasetId column and no yValues column, but more than one plot id. Additionally, having plot id different from 'plot\\d+' for the case of vis_spec expansion is tested. """ plot_with_vis_spec(visu_file_Fujita_all_obs_with_diff_settings, condition_file_Fujita, data_file_Fujita)
def test_visualization_with_vis_and_sim(data_file_Isensee, condition_file_Isensee, vis_spec_file_Isensee, simulation_file_Isensee): plot_with_vis_spec(vis_spec_file_Isensee, condition_file_Isensee, data_file_Isensee, simulation_file_Isensee)
def test_save_plots_to_file(data_file_Isensee, condition_file_Isensee, vis_spec_file_Isensee, simulation_file_Isensee): with TemporaryDirectory() as temp_dir: plot_with_vis_spec(vis_spec_file_Isensee, condition_file_Isensee, data_file_Isensee, simulation_file_Isensee, subplot_dir=temp_dir)