-
Notifications
You must be signed in to change notification settings - Fork 0
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
Datetimes in annotations/metadata #8
Comments
Write test for this as well as the |
@achilleas-k: For our datasets it would also be nice to have support for datetime.date and datetime.time objects. How complicated would this be to implement? |
It doesn't sound like it would be more complicated than what is already mentioned in this issue. I can probably keep a record of what the original format was (datetime, date, or time), in the same way I would do it for simply datetime. Might also be possible to come up with a general solution for types that are supported by Neo (which is basically anything) but not supported in NIX. I'll have to think about it a bit, but feel free to share suggestions. |
This problem came up numerous times in discussion about |
I went ahead and filed issue G-Node/nix#665 |
Well now you got me thinking whether I should hack around it for Neo at first or whether we should go ahead and put it in NIX. The biggest problem with the latter, implementing higher level data types in NIX, is that it might have to be queued up behind the changes coming in odML. Doing it in Neo can be a good temporary solution for @JuliaSprenger's requirements. In the worst case, for now I could store two values for each attribute: the raw value and the high-level type (in some unambiguous way). The second could be optional, so we won't need duplicate properties for the primitives. |
Future changes to my last suggestion could also be made backwards compatible in the Neo NixIO, especially if the secondary property is optional. |
Does indeed sound like a good plan. |
Track properties that were converted from datetimes to integers for conversion back to datetime.
The text was updated successfully, but these errors were encountered: