Skip to content

Commit 32bc572

Browse files
author
Thinh Nguyen
authored
Merge pull request #37 from kushalbakshi/main
Allow null `session_datetime` in `session_with_id`
2 parents 6d4681c + d5e9edf commit 32bc572

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5+
## [0.1.7] - 2023-11-30
6+
7+
+ Allow null value for `session_datetime` in `session_with_id`
8+
59
## [0.1.6] - 2023-09-18
610

711
+ Update - NWB export checks for activated session schema to allow use of both
812
`session_with_id` and `session_with_datetime`
913

10-
1114
## [0.1.5] - 2023-06-20
1215

1316
+ Update - GitHub Actions workflows
@@ -45,6 +48,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
4548
+ Add - GitHub Action release process
4649
+ Add - `session` schema
4750

51+
[0.1.7]: https://github.com/datajoint/element-session/releases/tag/0.1.7
4852
[0.1.6]: https://github.com/datajoint/element-session/releases/tag/0.1.6
4953
[0.1.5]: https://github.com/datajoint/element-session/releases/tag/0.1.5
5054
[0.1.4]: https://github.com/datajoint/element-session/releases/tag/0.1.4

element_session/session_with_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ class Session(dj.Manual):
5454
Attributes:
5555
Subject (foreign key): Key for Subject table
5656
session_id (int): Unique numeric session ID
57-
session_datetime (datetime): date and time of the session
57+
session_datetime (datetime, optional): date and time of the session
5858
"""
5959

6060
definition = """
6161
-> Subject
6262
session_id: int
6363
---
64-
session_datetime: datetime
64+
session_datetime=null: datetime
6565
"""
6666

6767
class Attribute(dj.Part):

element_session/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.1.6"
2+
__version__ = "0.1.7"

0 commit comments

Comments
 (0)