Skip to content

Commit

Permalink
Merge pull request #76 from sfarrens/clean_up
Browse files Browse the repository at this point in the history
fixed pycodestyle errors
  • Loading branch information
sfarrens committed Feb 8, 2019
2 parents 157565a + 451bed5 commit 5f0564b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pysap/base/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def _set_data(self, data):
if not all([e == data.shape[0] for e in data.shape]):
raise ValueError("Expect a square shape data.")
if data.ndim != self.data_dim:
raise ValueError("This wavelet can only be applied on {0}D "
"square images".format(self.data_dim))
raise ValueError("This wavelet can only be applied on {0}D "
"square images".format(self.data_dim))
if self.is_decimated and not (data.shape[0] // 2**(self.nb_scale) > 0):
raise ValueError("Can't decimate the data with the specified "
"number of scales.")
Expand Down
6 changes: 3 additions & 3 deletions pysap/extensions/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def mr3d_transform(
for key, value in [("-l", type_of_lifting_transform),
("-T", type_of_filters)]:
if value is not None:
cmd += [key, value]
cmd += [key, value]
for key, value in [("-L", use_l2_norm)]:
if value:
cmd.append(key)
Expand All @@ -233,7 +233,7 @@ def mr3d_transform(
if type_of_multiresolution_transform == 2:
for key, value in [("-l", type_of_lifting_transform)]:
if value is not None:
cmd += [key, value]
cmd += [key, value]

# A trous wavelet transform
if type_of_multiresolution_transform == 3:
Expand All @@ -242,7 +242,7 @@ def mr3d_transform(
raise ValueError("Wrong type of lifting transform with orthogonal")
for key, value in [("-l", type_of_lifting_transform)]:
if value is not None:
cmd += [key, value]
cmd += [key, value]

cmd += [in_image, out_mr_file]

Expand Down

0 comments on commit 5f0564b

Please sign in to comment.