Commit 2b7da115 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fix checking

parent 0251657d
Pipeline #87681 passed with stages
in 13 minutes and 38 seconds
......@@ -411,9 +411,9 @@ def minisanity(energy, data, sqrtmetric, modeldata_operator):
"""
if not (
isinstance(energy, Energy)
or isinstance(sqrtmetric, LinearOperator)
or is_operator(modeldata_operator)
or is_fieldlike(data)
and isinstance(sqrtmetric, LinearOperator)
and is_operator(modeldata_operator)
and is_fieldlike(data)
):
raise TypeError
normresi = sqrtmetric @ Adder(data, neg=True) @ modeldata_operator
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment