Skip to content

Commit 81c0a09

Browse files
committed
Minor fixes
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent ed3fe0f commit 81c0a09

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/inferers/test_zarr_avg_merger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def _get_directory_store(self, base_dir):
368368
def test_zarr_avg_merger_patches(self, arguments, patch_locations, expected):
369369
is_zarr_v3 = version_geq(get_package_version("zarr"), "3.0.0")
370370
codec_reg = numcodecs.registry.codec_registry
371+
arguments = dict(arguments)
371372

372373
# Handle compressor/codecs based on zarr version
373374
if "compressor" in arguments and is_zarr_v3:

tests/networks/layers/test_gaussian_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_training(self, input_args):
142142

143143
# train
144144
optimizer = torch.optim.Adam(trainable.parameters(), lr=lr)
145-
for s in range(1000):
145+
for _ in range(1000):
146146
optimizer.zero_grad()
147147
pred = trainable(base)
148148
loss = torch.pow(pred - target, 2).mean()

tests/transforms/test_detect_envelope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
]
5353

5454
TEST_CASE_2D_SINE_AXIS_1 = [
55-
{"axis": 2}, # set axis argument to 1
55+
{"axis": 2}, # set axis argument to 2
5656
# Create 10 identical windowed sine waves as a 2D numpy array
5757
np.expand_dims(np.stack([hann_windowed_sine] * 10, axis=1), 0),
5858
# Expected output: absolute value of each sample of the waveform, repeated (i.e. flat envelopes)

0 commit comments

Comments
 (0)