Skip to content

ABF Fix v1 date parsing#1870

Open
h-mayorquin wants to merge 1 commit into
NeuralEnsemble:masterfrom
h-mayorquin:fix_axon_v1_date
Open

ABF Fix v1 date parsing#1870
h-mayorquin wants to merge 1 commit into
NeuralEnsemble:masterfrom
h-mayorquin:fix_axon_v1_date

Conversation

@h-mayorquin

Copy link
Copy Markdown
Contributor

I realized that we were hard-coding this.

Comment thread neo/rawio/axonrawio.py
ss = int(ss)
header["rec_datetime"] = datetime.datetime(YY, MM, DD, hh, mm, ss, ms)
try:
header["rec_datetime"] = datetime.datetime(YY, MM, DD, hh, mm, ss, ms)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we could check for the two bad values instead of try-except which can mask errors. What if there is another error mode that we miss because of this try-except that we would catch if we explicitly check for 0 or 0xFFFF... before attempting the date time.datetime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants