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.
After initialising labels of a
LabelRowV2instance using itsinitialise_labelsmethod the fieldscreated_atandlast_edited_atare of typestrinstead ofdatetime.Looks there is a missing conversion to
datetimeof thestrtimestamps in_parse_label_row_dictencord-client-python/encord/objects/ontology_labels_impl.py
Line 1410 in dd83dce
PS: It also seems like the
strtimestamp 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.