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

Time, date, datetime Property handling #341

Closed
mpsonntag opened this issue Nov 18, 2019 · 0 comments · Fixed by #346
Closed

Time, date, datetime Property handling #341

mpsonntag opened this issue Nov 18, 2019 · 0 comments · Fixed by #346
Assignees

Comments

@mpsonntag
Copy link
Contributor

mpsonntag commented Nov 18, 2019

Create a Property with DType time, date or datetime will fail, if the corresponding value is not appropriately formatted as specified in dtypes.py.

     # fails with message 'odml.Property.values: passed values are not of consistent type!'
     prop = odml.Property(name="dateprop", dtype=odml.DType.date, value=['20190707'])
     # works fine
     prop = odml.Property(name="dateprop", dtype=odml.DType.date, value=['2019-07-07'])

This behavior is fine, but the resulting error message should be helpful in pointing towards the expected, correct format.

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 a pull request may close this issue.

2 participants