AcademySoftwareFoundation / AcademySoftwareFoundation/OpenTimelineIO

Metadata type mismatch

Open
#691 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
C++
Stars
2k
Forks
351
Avg merge
1d 12h
Merged PRs (30d)
1

Description

If I put a number into a clip's metadata, normally it is fine, but if the number is too big, then I get `True` back instead, which is not right.
```
import opentimelineio as otio
c = otio.schema.Clip()
c.metadata["test"]={"foo":9999}
print(c.metadata)
c.metadata["test"]={"foo":99999999999999999999999999999999}
print(c.metadata)

OUTPUT:
{'test': {'foo': 9999}}
{'test': {'foo': True}}
```

Contributor guide

Open the contributing guide

Research direction

Start by running the Python reproduction using c.metadata and compare the results for 9999 and the oversized integer. Trace the metadata assignment and numeric conversion path; done means oversized integer values retain an appropriate numeric value instead of becoming True.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.