Skip to content

Commit 35f77ac

Browse files
author
Thinh Nguyen
authored
Merge pull request #31 from kabilar/master
Update datatype
2 parents 9c0a85e + 36b1d7f commit 35f77ac

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

CHANGELOG.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,33 @@
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.2.0] - 2023-04-04
6+
7+
+ Update - `event.Event::event_start_time` datatype to decimal(10, 4)
8+
59
## [0.1.3] - 2022-11-02
610

7-
+ Added - mkdocs deployment
11+
+ Add - mkdocs deployment
812

913
## [0.1.2] - 2022-08-26
1014

11-
+ Added - `attribute_blob` as `longblob` in the Attribute tables
12-
+ Added - support storing non-string data types
15+
+ Add - `attribute_blob` as `longblob` in the Attribute tables
16+
+ Add - support storing non-string data types
1317

1418
## [0.1.1] - 2022-06-10
1519

16-
+ Added - NotImplementedError where Imported tables do not offer make function
17-
+ Added - get_trialized_alignment_event_times docstring specificity
18-
+ Changed - Diagram to reflect design with trial.BlockTrial as imported
20+
+ Add - NotImplementedError where Imported tables do not offer make function
21+
+ Add - get_trialized_alignment_event_times docstring specificity
22+
+ Update - Diagram to reflect design with trial.BlockTrial as imported
1923

2024
## [0.1.0] - 2022-05-10
2125

22-
+ Added - Draft based on [Cajal](https://github.com/cajal/pipeline) and [Kavli Institute](https://github.com/kavli-ntnu/dj-docs) precursor projects
23-
+ Added - Table architecture
24-
+ Added - AlignmentEvent design to capture windows relative to an event
25-
+ Added - Black formatting into code base
26+
+ Add - Draft based on [Cajal](https://github.com/cajal/pipeline) and [Kavli Institute](https://github.com/kavli-ntnu/dj-docs) precursor projects
27+
+ Add - Table architecture
28+
+ Add - AlignmentEvent design to capture windows relative to an event
29+
+ Add - Black formatting into code base
2630

31+
[0.2.0]: https://github.com/datajoint/element-event/releases/tag/0.2.0
2732
[0.1.3]: https://github.com/datajoint/element-event/releases/tag/0.1.3
2833
[0.1.2]: https://github.com/datajoint/element-event/releases/tag/0.1.2
2934
[0.1.1]: https://github.com/datajoint/element-event/releases/tag/0.1.1

element_event/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ class Event(dj.Imported):
146146
Attributes:
147147
BehaviorRecording (foreign key): Behavior recording primary key.
148148
EventType (foreign key): EventType primary key.
149-
event_start_time (float): Time of event onset in seconds, WRT recording start.
149+
event_start_time (decimal(10, 4)): Time of event onset in seconds, WRT recording start.
150150
event_end_time (float): Optional. Seconds WRT recording start.
151151
"""
152152

153153
definition = """
154154
-> BehaviorRecording
155155
-> EventType
156-
event_start_time : float # (second) relative to recording start
156+
event_start_time : decimal(10, 4) # (second) relative to recording start
157157
---
158158
event_end_time=null : float # (second) relative to recording start
159159
"""

element_event/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.2"
2+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)