Skip to content

Commit cd66fa1

Browse files
committed
STY: pep8 fixes
1 parent 7566dd1 commit cd66fa1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

odl/operator/default_ops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,7 @@ def __repr__(self):
18331833
inner_parts = signature_string_parts(posargs, optargs)
18341834
return repr_string(self.__class__.__name__, inner_parts)
18351835

1836+
18361837
class ComplexModulusSquared(Operator):
18371838

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

2055+
20542056
if __name__ == '__main__':
20552057
from odl.util.testutils import run_doctests
20562058
run_doctests()

odl/operator/tensor_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ class PointwiseInnerAdjoint(PointwiseTensorFieldOperator):
569569
def _call(self, f, out):
570570
"""Implement ``self(vf, out)``."""
571571
for vfi, oi, ran_wi, dom_wi in zip(
572-
op.vecfield, out, adj_ran_weights, op.weights):
572+
op.vecfield, out, adj_ran_weights, op.weights
573+
):
573574
vfi.multiply(f, out=oi)
574575
if not np.isclose(ran_wi, dom_wi):
575576
oi *= dom_wi / ran_wi

odl/util/utility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,8 @@ class that is created through a method, for instance ::
14161416

14171417
# Method call part
14181418
arg_str_oneline = ', '.join(arg_strs)
1419-
if ('\n' not in arg_str_oneline and
1419+
if (
1420+
'\n' not in arg_str_oneline and
14201421
meth_line_start_len + 1 + len(arg_str_oneline) + 1 <= linewidth
14211422
):
14221423
meth_call_str = '(' + arg_str_oneline + ')'

0 commit comments

Comments
 (0)