openworm / tracker-commons

Compilation of information and code bases related to open-source trackers for C. elegans
11 stars 12 forks source link

save_to_file doesn't order dictionaries nested from lists #92

Closed MichaelCurrie closed 8 years ago

MichaelCurrie commented 8 years ago

The current sorting method, get_sorted_ordered_dict, does not sort dictionary keys alphabetically if they are nested beneath a list. As a result sufficiently nested metadata entries will sometimes be saved with slightly different file text. This is sometimes breaking the file comparison unit test.

MichaelCurrie commented 8 years ago

Fixed by ef2d99e