Skip to content

Commit eb23cd3

Browse files
committed
reg_geom unneeded
1 parent 2ecc274 commit eb23cd3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/dartsort/templates/pairwise_util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def compressed_convolve_to_h5(
2626
chunk_time_centers_s: Optional[np.ndarray] = None,
2727
motion_est=None,
2828
geom: Optional[np.ndarray] = None,
29-
reg_geom: Optional[np.ndarray] = None,
3029
conv_ignore_threshold=0.0,
3130
coarse_approx_error_threshold=0.0,
3231
conv_batch_size=128,
@@ -69,7 +68,6 @@ def compressed_convolve_to_h5(
6968
template_shift_index=template_shift_index,
7069
upsampled_shifted_template_index=upsampled_shifted_template_index,
7170
geom=geom,
72-
reg_geom=reg_geom,
7371
conv_ignore_threshold=conv_ignore_threshold,
7472
coarse_approx_error_threshold=coarse_approx_error_threshold,
7573
max_shift="full",
@@ -143,7 +141,6 @@ def iterate_compressed_pairwise_convolutions(
143141
template_shift_index: drift_util.TemplateShiftIndex,
144142
upsampled_shifted_template_index: UpsampledShiftedTemplateIndex,
145143
geom: Optional[np.ndarray] = None,
146-
reg_geom: Optional[np.ndarray] = None,
147144
conv_ignore_threshold=0.0,
148145
coarse_approx_error_threshold=0.0,
149146
max_shift="full",
@@ -167,6 +164,7 @@ def iterate_compressed_pairwise_convolutions(
167164
n_shifts = template_shift_index.all_pitch_shifts.size
168165
do_shifting = n_shifts > 1
169166
geom_kdtree = reg_geom_kdtree = match_distance = None
167+
reg_geom = template_data.registered_geom
170168
if do_shifting:
171169
assert geom is not None
172170
assert reg_geom is not None

tests/test_templates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def test_pconv():
252252
pconvdb_path = pairwise_util.compressed_convolve_to_h5(
253253
Path(tdir) / "test.h5",
254254
geom=geom,
255-
reg_geom=reg_geom,
256255
template_data=tdata,
257256
low_rank_templates=svd_compressed,
258257
compressed_upsampled_temporal=ctempup,

0 commit comments

Comments
 (0)