Skip to content

Commit 9102a33

Browse files
Merge pull request #49 from ttngu207/main
Fix tiny NWB export bug - .fetch1() from Subject.Species
2 parents 0bd4e00 + 3627ddf commit 9102a33

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.2.2] - 2025-05-14
7+
+ Fix - NWB export - `.fetch1()` from `Subject.Species` table
8+
69
## [0.2.1] - 2023-11-28
710
+ Add - `Species` table in `subject` schema
811

element_animal/export/nwb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def subject_to_nwb(session_key: dict):
3030
datetime.strptime("00:00:00", "%H:%M:%S").time(),
3131
),
3232
description=json.dumps(subject_info, default=str),
33-
species=str((subject.Species & subject_query).fetch("species")),
33+
species=str((subject.Species & subject_query).fetch1("species")),
3434
genotype=" x ".join(
3535
(subject.Line.Allele * subject.Subject.Line & subject_query).fetch("allele")
3636
),

element_animal/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Package metadata."""
2-
__version__ = "0.2.1"
2+
__version__ = "0.2.2"

0 commit comments

Comments
 (0)