citrine.seeding.sort_gems module

citrine.seeding.sort_gems.split_templates_from_objects(gems)

Sort the provided gems into two lists.

The first list contains only templates (both ObjectTemplate and AttributeTemplate). The second list contains only data objects (specs and runs).

Useful when the procedure for seeding templates needs to be distinct from the procedure for seeding data objects.

Note that each list is unsorted and it is expected that subsequent registration code will handle sorting the gems provided.