Skip to content

Commit

Permalink
[fix] maxent test precision fix and test dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Mar 11, 2024
1 parent b1937c5 commit 14201c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

# ------------------------------#

Expand All @@ -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")
6 changes: 3 additions & 3 deletions test/python/test_maxent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 14201c5

Please sign in to comment.