AlloyPairMemberBuilder
- class emmet.builders.materials.alloys.AlloyPairMemberBuilder(alloy_pairs, materials, snls, alloy_pair_members)
Bases:
BuilderThis builder iterates over available AlloyPairs by chemical system and searches for possible members of those AlloyPairs.
- 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
- Parameters:
item (tuple[list[AlloyPair], dict[str, Structure]])
- 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: