Skip to content

Commit

Permalink
STY: pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kohr-h committed Jun 25, 2018
1 parent 80983f6 commit 53f5983
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions odl/operator/default_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,7 @@ def __repr__(self):
inner_parts = signature_string_parts(posargs, optargs)
return repr_string(self.__class__.__name__, inner_parts)


class ComplexModulusSquared(Operator):

"""Operator that computes the squared complex modulus (absolute value)."""
Expand Down Expand Up @@ -2051,6 +2052,7 @@ def __repr__(self):
inner_parts = signature_string_parts(posargs, optargs)
return repr_string(self.__class__.__name__, inner_parts)


if __name__ == '__main__':
from odl.util.testutils import run_doctests
run_doctests()
3 changes: 2 additions & 1 deletion odl/operator/tensor_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ class PointwiseInnerAdjoint(PointwiseTensorFieldOperator):
def _call(self, f, out):
"""Implement ``self(vf, out)``."""
for vfi, oi, ran_wi, dom_wi in zip(
op.vecfield, out, adj_ran_weights, op.weights):
op.vecfield, out, adj_ran_weights, op.weights
):
vfi.multiply(f, out=oi)
if not np.isclose(ran_wi, dom_wi):
oi *= dom_wi / ran_wi
Expand Down
3 changes: 2 additions & 1 deletion odl/util/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,8 @@ class that is created through a method, for instance ::

# Method call part
arg_str_oneline = ', '.join(arg_strs)
if ('\n' not in arg_str_oneline and
if (
'\n' not in arg_str_oneline and
meth_line_start_len + 1 + len(arg_str_oneline) + 1 <= linewidth
):
meth_call_str = '(' + arg_str_oneline + ')'
Expand Down

0 comments on commit 53f5983

Please sign in to comment.