genomoncology / related

Nested Object Models in Python with dictionary, YAML, and JSON transformation support
MIT License
198 stars 15 forks source link

Not clear how to express "list of 2-tuples" #14

Closed ambivalentno closed 5 years ago

ambivalentno commented 6 years ago

So, I've looked at SequenceField and it's not quite clear for me should I do that in correct way. At the moment, I can say each of two-tuples is an object with both attributes of float type. But I don't feel it's a correct approach.

ambivalentno commented 6 years ago

@imaurer bump!

imaurer commented 5 years ago

Since YAML and JSON don't roundtrip to and from tuples, I don't think this is in scope of related. I would recommend putting in getter/setter properties or some other mechanism to transform to and from tuples.

Sorry for the delayed response.