Skip to content

utils.timeunit_helper does not handle conversion from frame_num to isoformat #312

@keighrim

Description

@keighrim

Bug Description

Instead of iso-format timecode string, convert function returns millisecond integer.

Reproduction steps

>>> from mmif.utils import timeunit_helper as tuh
>>> tuh.convert(100, 'f', 's', 30)
3.3333333333333335
>>> tuh.convert(100, 'f', 'm', 30)
3333
>>> tuh.convert(100, 'f', 'i', 30)
3333

Expected behavior

>>> from mmif.utils import timeunit_helper as tuh
>>> tuh.convert(100, 'f', 'i', 30)
'00:00:03.333'

Log output

No response

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛BSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions