Skip to content

Commit 2c3b996

Browse files
add mag conversion
1 parent c3f02a4 commit 2c3b996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wkcuber/downsampling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def downsample_mags(
426426
logging.basicConfig(level=logging.DEBUG)
427427

428428
from_mag = Mag(args.from_mag)
429+
max_mag = Mag(args.max)
429430
if args.anisotropic_target_mag:
430431
anisotropic_target_mag = Mag(args.anisotropic_target_mag)
431432

@@ -445,7 +446,7 @@ def downsample_mags(
445446
args.path,
446447
args.layer_name,
447448
from_mag,
448-
args.max,
449+
max_mag,
449450
args.dtype,
450451
args.interpolation_mode,
451452
args.buffer_cube_size,

0 commit comments

Comments
 (0)