UnitMatchPy 3.6.0__py3-none-any.whl → 3.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
UnitMatchPy/save_utils.py CHANGED
@@ -720,13 +720,17 @@ def make_UnitMatch_folder_from_sorting_analyzers(analyzers, save_dir):
720
720
  bombcell_labels.to_csv(session_dir / "bombcell_labels.tsv", sep='\t')
721
721
 
722
722
  # CHANNEL POSITION
723
-
723
+
724
+ # UnitMatchPy's shank-partitioning code (get_probe_geometry, metric_functions.py)
725
+ # expects column 1 to be the X (shank) axis, matching the convention
726
+ # utils.paths_from_KS() uses for classic Kilosort-loaded positions: a
727
+ # placeholder column of 1's is inserted at position 0, giving [1, X, Y].
728
+ # Padding with a trailing Z=0 instead (giving [X, Y, 0]) shifts X to column 0,
729
+ # which silently breaks per-shank drift correction on multi-shank probes.
724
730
  channel_locations = analyzer.get_channel_locations()
725
- if channel_locations.shape[1] == 2:
726
- channel_locations_3D = np.zeros((np.shape(channel_locations)[0], 3))
727
- channel_locations_3D[:,0:2] = channel_locations
728
- else:
729
- channel_locations_3D = channel_locations
731
+ channel_locations_3D = np.insert(
732
+ channel_locations, 0, np.ones(channel_locations.shape[0]), axis=1
733
+ )
730
734
 
731
735
  np.save(session_dir / "channel_locations.npy", channel_locations_3D)
732
736
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: UnitMatchPy
3
- Version: 3.6.0
3
+ Version: 3.6.1
4
4
  Summary: Automatic matching of neurons across sessions
5
5
  Author: Enny van Beest, Célian Bimbard, Suyash Agarwal, Wentao Qiu
6
6
  License: CC BY-NC-SA 4.0 International
@@ -54,7 +54,7 @@ This repository contains:
54
54
 
55
55
  ## Versions
56
56
 
57
- - **UnitMatchPy version:** `3.6.0` (from `pyproject.toml`)
57
+ - **UnitMatchPy version:** `3.6.1` (from `pyproject.toml`)
58
58
  - **DeepUnitMatch:** code lives under `DeepUnitMatch/` (see **DeepUnitMatch (DUM)** section)
59
59
 
60
60
  ## System requirements
@@ -10,7 +10,7 @@ UnitMatchPy/metric_functions.py,sha256=1lcydiyt11xsfs_NLmoq2hiyuYRCqk0zyamihn6TV
10
10
  UnitMatchPy/overlord.py,sha256=vQAq6C8IZrohDiYRktwHLUsUzCyampoCexyqwQVY2Ig,7553
11
11
  UnitMatchPy/param_functions.py,sha256=SrLbg72hkLbALC1j0EpeIpwory6u3VkK2Re9VHAHtXU,18249
12
12
  UnitMatchPy/run.py,sha256=hu5U0sKLrP1Wi4aQCjasqK3ZpJuDcabX4XmGNjPxM8s,5973
13
- UnitMatchPy/save_utils.py,sha256=UrfPsLc1BkZKBsL-Lh9LqO80eGDEyD27IXn0oFL3igQ,26116
13
+ UnitMatchPy/save_utils.py,sha256=GSrXc5PVRPncBqOic21ibK9Ar_jqBQ9cd0cfGHUIsuA,26481
14
14
  UnitMatchPy/utils.py,sha256=1dfIx-Be5_UbkiGPwqJnRnr5heLHnCfLpJTxu8REvRc,45483
15
15
  UnitMatchPy/TkinterTheme/awthemes-10.4.0/LICENSE,sha256=QLti2X2WgO5MQ5_zSH1BpTVF2KHSCliQa9HG1s4skQk,2215
16
16
  UnitMatchPy/TkinterTheme/awthemes-10.4.0/README.txt,sha256=OszYA8mn7QelmAYtz0bHi6sf9YOvrXLGgmuCx3bRoJ4,15419
@@ -279,8 +279,8 @@ UnitMatchPy/TkinterTheme/awthemes-10.4.0/i/awthemes/treeview/solid/tree-arrow-do
279
279
  UnitMatchPy/TkinterTheme/awthemes-10.4.0/i/awthemes/treeview/solid/tree-arrow-right-n-base.svg,sha256=rhgTHm-xIGRkRz9sCSwNNZ3uKfDrK78lroyYbBJAZsk,2386
280
280
  UnitMatchPy/TkinterTheme/awthemes-10.4.0/i/awthemes/treeview/solid/tree-arrow-right-n.svg,sha256=8x1rGSDH8eyFeQDJ-glAc63K1hl-UveaJTNBkDmP6vA,2497
281
281
  UnitMatchPy/TkinterTheme/awthemes-10.4.0/i/awthemes/treeview/solid/tree-arrow-right-sn.svg,sha256=8x1rGSDH8eyFeQDJ-glAc63K1hl-UveaJTNBkDmP6vA,2497
282
- unitmatchpy-3.6.0.dist-info/licenses/LICENSE,sha256=WAMqgXMZUjcGirAtQplIvDIz2OaFjRud39xH47vD2Ec,20844
283
- unitmatchpy-3.6.0.dist-info/METADATA,sha256=Iq3pjD66N_Yyrh5HWC2uEczchHZGLAOQEDSazTPwq7o,6653
284
- unitmatchpy-3.6.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
285
- unitmatchpy-3.6.0.dist-info/top_level.txt,sha256=EjaC3TLtFxUHy5xVS71T_IrmNpDUVUlXf-7GO32tuDI,12
286
- unitmatchpy-3.6.0.dist-info/RECORD,,
282
+ unitmatchpy-3.6.1.dist-info/licenses/LICENSE,sha256=WAMqgXMZUjcGirAtQplIvDIz2OaFjRud39xH47vD2Ec,20844
283
+ unitmatchpy-3.6.1.dist-info/METADATA,sha256=wdmgnT_ZZe5j9sLxPDasUq-NoJE_7CcSgGGIXRnnMqw,6653
284
+ unitmatchpy-3.6.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
285
+ unitmatchpy-3.6.1.dist-info/top_level.txt,sha256=EjaC3TLtFxUHy5xVS71T_IrmNpDUVUlXf-7GO32tuDI,12
286
+ unitmatchpy-3.6.1.dist-info/RECORD,,