AlloySystemBuilder
- class emmet.builders.materials.alloys.AlloySystemBuilder(alloy_pairs, alloy_pair_members, alloy_pairs_merged, alloy_systems)
Bases:
BuilderThis builder stitches together the results of AlloyPairBuilder and AlloyPairMemberBuilder. The output of this collection is the one served by the AlloyPair API. It also builds AlloySystem.
- get_items()
Returns all the items to process.
- Returns:
generator or list of items to process
- process_item(item)
Process an item. There should be no database operations in this method. Default behavior is to return the item.
- Arguments:
item:
- Returns:
item: an item to update
- update_targets(items)
Takes a list of items from process item and updates the targets with them. Can also perform other book keeping in the process such as storing gridfs oids, etc.
- Arguments:
items:
Returns: