test: only log warning by default

This commit is contained in:
Deepak Mallubhotla 2023-07-23 22:37:29 -05:00
parent d60a0cb386
commit 18cc48471d
Signed by: deepak
GPG Key ID: BEBAEBF28083E022
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class DipoleModel:
dips.append(tentative_dip) dips.append(tentative_dip)
dips_array = pdme.subspace_simulation.sort_array_of_dipoles_by_frequency(dips) dips_array = pdme.subspace_simulation.sort_array_of_dipoles_by_frequency(dips)
tentative_cost = cost_function(numpy.array([dips_array])) tentative_cost = cost_function(numpy.array([dips_array]))[0]
if tentative_cost < threshold_cost: if tentative_cost < threshold_cost:
chain.append((tentative_cost, dips_array)) chain.append((tentative_cost, dips_array))
current = dips_array current = dips_array

View File

@ -29,7 +29,7 @@ testpaths = ["tests"]
addopts = "--junitxml pytest.xml --cov pdme --cov-report=xml:coverage.xml --cov-fail-under=50 --cov-report=html" addopts = "--junitxml pytest.xml --cov pdme --cov-report=xml:coverage.xml --cov-fail-under=50 --cov-report=html"
junit_family = "xunit1" junit_family = "xunit1"
log_format = "%(asctime)s | %(levelname)s | %(pathname)s:%(lineno)d | %(message)s" log_format = "%(asctime)s | %(levelname)s | %(pathname)s:%(lineno)d | %(message)s"
log_level = "DEBUG" log_level = "WARNING"
[tool.mypy] [tool.mypy]
plugins = "numpy.typing.mypy_plugin" plugins = "numpy.typing.mypy_plugin"