Skip to content
Snippets Groups Projects
Commit 9724fd4b authored by Michael Langguth's avatar Michael Langguth
Browse files

Ensure creation of stat_01.json (test statistic file) if it's not present at test time.

parent 1b0f760b
No related branches found
No related tags found
No related merge requests found
Pipeline #48688 failed
......@@ -48,6 +48,12 @@ def test_process_images_to_list_by_month(preprocessData_case1):
def test_save_stat_info(preprocessData_case1):
# statistic file to be tested
fstat2test = '/p/project/deepacf/deeprain/video_prediction_shared_folder/preprocessedData/test/stat_01.json'
# if statistic file is not present, create it
if not os.path.isfile(fstat2test):
preprocessData_case1()
temp_list = np.array(preprocessData_case1.EU_stack_list)[:,:,:,0]
temp_mean = np.mean(temp_list)
temp_min = np.min(temp_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment