From 14201c5c7cb951b9f90b34be32963fa3bd9d0df0 Mon Sep 17 00:00:00 2001 From: Alexander Hampel Date: Mon, 11 Mar 2024 19:31:02 -0400 Subject: [PATCH] [fix] maxent test precision fix and test dependency --- test/python/CMakeLists.txt | 2 ++ test/python/test_maxent.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/python/CMakeLists.txt b/test/python/CMakeLists.txt index b7636848..792cbad1 100644 --- a/test/python/CMakeLists.txt +++ b/test/python/CMakeLists.txt @@ -79,6 +79,7 @@ add_test(NAME maxent_${test} ) set_property(TEST maxent_${test} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}) +set_property(TEST maxent_${test} APPEND PROPERTY DEPENDS "svo_hubbardI_basic") # ------------------------------# @@ -100,3 +101,4 @@ foreach(test ${restart_integration_test}) set_property(TEST restart_${test} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}) endforeach() +set_property(TEST maxent_${test} APPEND PROPERTY DEPENDS "svo_hubbardI_basic") diff --git a/test/python/test_maxent.py b/test/python/test_maxent.py index b2ad47e3..55a74605 100644 --- a/test/python/test_maxent.py +++ b/test/python/test_maxent.py @@ -26,15 +26,15 @@ # because of HubbardI so that numerical differences can dominate the comparison mpi.report('#########\nTesting impurity Gf Maxent\n#########') maxent_gf_imp.main('svo_hubbardI_basic/out/inp.h5', sum_spins=True, - n_points_maxent=20, n_points_alpha=10) + n_points_maxent=40, n_points_alpha=6, maxent_error=0.01) # Run sigma maxent mpi.report('#########\nTesting Sigma Maxent\n#########') maxent_sigma.main(external_path='svo_hubbardI_basic/out/inp.h5', omega_min=-12, omega_max=12, maxent_error=0.002, iteration=None, - n_points_maxent=20, - n_points_alpha=10, + n_points_maxent=40, + n_points_alpha=6, analyzer='LineFitAnalyzer', n_points_interp=501, n_points_final=501,