RMG-Py icon indicating copy to clipboard operation
RMG-Py copied to clipboard

Make reordering and reindexing of entries optional when saving database

Open davidfarinajr opened this issue 4 years ago • 0 comments

Motivation or Problem

When loading and saving the database, the entries are automatically re-ordered and re-indexed using the get_entries_to_save function. While it is nice to have this option, sometimes we do not want to reorder and reindex when adding new entries because the entire file may be rewritten in the git commit history.

Description of Changes

This PR makes the reordering and reindexing optional when saving.

Testing

I used this branch when saving the thermo groups in PR https://github.com/ReactionMechanismGenerator/RMG-database/pull/414.

davidfarinajr avatar May 18 '20 20:05 davidfarinajr