From 54d4facd38a79ba9b6e40c01174fdb04e6dee43d Mon Sep 17 00:00:00 2001 From: Thinh Nguyen Date: Fri, 12 Jan 2024 12:26:47 -0600 Subject: [PATCH 1/2] fix(probe_geometry): bugfix in x_coords for probe with staggered electrode positions --- element_array_ephys/readers/probe_geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/element_array_ephys/readers/probe_geometry.py b/element_array_ephys/readers/probe_geometry.py index 11e3ae99..b0f27765 100644 --- a/element_array_ephys/readers/probe_geometry.py +++ b/element_array_ephys/readers/probe_geometry.py @@ -188,7 +188,7 @@ def build_electrode_layouts( row_offset = np.zeros_like(x_coords) else: assert len(row_offset) == row_count - row_offset = np.tile(row_offset, col_count_per_shank) + row_offset = np.repeat(row_offset, col_count_per_shank) x_coords = x_coords + row_offset shank_cols = np.tile(range(col_count_per_shank), row_count) From 2e79f3d984272ce97709e7c83bb153ab6a2a452a Mon Sep 17 00:00:00 2001 From: Thinh Nguyen Date: Fri, 12 Jan 2024 12:36:19 -0600 Subject: [PATCH 2/2] update(version): update CHANGELOG and version --- CHANGELOG.md | 3 +++ element_array_ephys/version.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 976a9b9a..a4a87cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention. +## [0.3.2] - 2024-01-12 ++ Fix - `probe_geometry` bugfix for incorrect handling of probes with staggered electrode positions + ## [0.3.1] - 2023-11-28 + Update - Flowchart borders for consistency with other DataJoint Elements + Fix - `dj.config()` setup moved to `tutorial_pipeline.py` instead of `__init__.py` diff --git a/element_array_ephys/version.py b/element_array_ephys/version.py index 44e1df2a..5ce31aa5 100644 --- a/element_array_ephys/version.py +++ b/element_array_ephys/version.py @@ -1,2 +1,2 @@ """Package metadata.""" -__version__ = "0.3.1" +__version__ = "0.3.2"