pachterlab / seqspec

machine-readable file format for genomic library sequence and structure
MIT License
112 stars 17 forks source link

Make to_dict and to_JSON generate dictionaries with keys in the same order #18

Closed detrout closed 1 year ago

detrout commented 1 year ago

to_dict has a hard coded attribute order used when generating a dictionary to return, which is different from the order generated by directly accessing the class' dict attribute.

It might be easier to be consistent to have to_JSON call to_dict so they both generate the same order.