Skip to content

Commit 0dc4918

Browse files
authored
Merge pull request #6 from NFFT/python-code-format-patches
Fixes by format action
2 parents 8f1b01d + d190183 commit 0dc4918

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/pyGroupedTransforms/NFCTtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_transform(
126126
if bandwidths.ndim > 1 or bandwidths.dtype != "int32":
127127
return "Please use an zero or one-dimensional numpy.array with dtype 'int32' as input"
128128

129-
(M, d) = X.shape
129+
M, d = X.shape
130130

131131
if len(bandwidths) == 0:
132132
return DeferredLinearOperator(

src/pyGroupedTransforms/NFFTtools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def nfft_index_set(
8787
return np.array(
8888
list(range(int(-bandwidths[0] / 2), int(bandwidths[0] / 2))), dtype="int"
8989
)
90-
91-
90+
9291
tmp = [list(range(int(-bw / 2), int(bw / 2))) for bw in bandwidths[::-1]]
9392
tmp = itertools.product(*(tmp[::-1]))
9493

@@ -138,7 +137,7 @@ def get_transform(
138137
if bandwidths.ndim > 1 or bandwidths.dtype != "int32":
139138
return "Please use an zero or one-dimensional numpy.array with dtype 'int32' as input"
140139

141-
(M, d) = np.shape(X)
140+
M, d = np.shape(X)
142141

143142
if len(bandwidths) == 0:
144143
return DeferredLinearOperator(

0 commit comments

Comments
 (0)