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

Invalid type for datetime fields of LabelRowV2 instance after labels initialisation #597

Open
gfringeli opened this issue May 28, 2024 · 0 comments

Comments

@gfringeli
Copy link

gfringeli commented May 28, 2024

After initialising labels of a LabelRowV2 instance using its initialise_labels method the fields created_at and last_edited_at are of type str instead of datetime.
Looks there is a missing conversion to datetime of the str timestamps in _parse_label_row_dict

created_at=label_row_dict["created_at"],

PS: It also seems like the str timestamp used in the code location above does not contain subsecond information, i.e. no millisecond data. However, when obtaining an already initialised label from Encord, the datetime fields do contain millisecond data.

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

No branches or pull requests

1 participant