Closed SupraSummus closed 5 years ago
If .pgt
files should be deterministic then I propose adding sort_keys=True
to JSON dumping. Let me know if this is desired and I may add this change to the PR.
Agreed. No need for OrderedDict
.
And, yes, I think it would be better to have pgt
json files deterministic as it would make life easier when working with version control or making tests based on comparing outputs.
Updated.
Looks good. Thanks.
Why I think this is a change for better:
OrderedDict
for table serialization. We don;t need information about order to reconstruct the tables.repr
(and possibly other representations / other processing).