Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datatype #31

Merged
merged 4 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,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.

## [0.2.0] - 2023-04-04

+ Update - `event.Event::event_start_time` datatype to decimal(10, 4)

## [0.1.3] - 2022-11-02

+ Added - mkdocs deployment
+ Add - mkdocs deployment

## [0.1.2] - 2022-08-26

+ Added - `attribute_blob` as `longblob` in the Attribute tables
+ Added - support storing non-string data types
+ Add - `attribute_blob` as `longblob` in the Attribute tables
+ Add - support storing non-string data types

## [0.1.1] - 2022-06-10

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

## [0.1.0] - 2022-05-10

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

[0.2.0]: https://github.com/datajoint/element-event/releases/tag/0.2.0
[0.1.3]: https://github.com/datajoint/element-event/releases/tag/0.1.3
[0.1.2]: https://github.com/datajoint/element-event/releases/tag/0.1.2
[0.1.1]: https://github.com/datajoint/element-event/releases/tag/0.1.1
Expand Down
4 changes: 2 additions & 2 deletions element_event/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ class Event(dj.Imported):
Attributes:
BehaviorRecording (foreign key): Behavior recording primary key.
EventType (foreign key): EventType primary key.
event_start_time (float): Time of event onset in seconds, WRT recording start.
event_start_time (decimal(10, 4)): Time of event onset in seconds, WRT recording start.
event_end_time (float): Optional. Seconds WRT recording start.
"""

definition = """
-> BehaviorRecording
-> EventType
event_start_time : float # (second) relative to recording start
event_start_time : decimal(10, 4) # (second) relative to recording start
---
event_end_time=null : float # (second) relative to recording start
"""
Expand Down
2 changes: 1 addition & 1 deletion element_event/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Package metadata."""
__version__ = "0.1.2"
__version__ = "0.2.0"