test: only log warning by default
This commit is contained in:
parent
d60a0cb386
commit
18cc48471d
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user