allometric / models

A repository of allometric model files and parameters.
https://allometric.org
6 stars 1 forks source link

Retain membership to model sets #71

Open brycefrank opened 1 month ago

brycefrank commented 1 month ago

Right now, model sets are only used as a convenience for writing publication files, however they are often useful to know about because they may relate to a specific portion of a document (like a table or appendix) and can be essential for navigating large publications. Sets also, by definition, must have the same functional form, which creates a natural grouping structure.

One idea is to create an 8 character uuid for the set by hashing the uuids of the models inside. Then, assign this value to each model, say model.set_id and also store publication.set_ids. We can entertain if writing sets explicitly to their own collection is worthwhile later, but this should be enough to do basic queries.