AlloyPairBuilder
- class emmet.builders.materials.alloys.AlloyPairBuilder(materials, thermo, electronic_structure, provenance, oxi_states, alloy_pairs, thermo_type=ThermoType.GGA_GGA_U_R2SCAN)
Bases:
BuilderThis builder iterates over anonymous_formula and builds AlloyPair. It does not look for members of an AlloyPair.
- Parameters:
thermo_type (ThermoType | str)
- 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: