get_average_volume_from_mp_api

atomate2.common.jobs.mpmorph.get_average_volume_from_mp_api(composition, mp_api_key=None)[source]

Get the average volume per atom for a given composition from the Materials Project.

This function will make API calls to the Materials Project. Check Materials Project API documentation for more information https://next-gen.materialsproject.org/api.

Parameters:
  • composition (Composition) – The target composition.

  • mp_api_key (str or None) – The user’s MP API key.

Returns:

The average volume per atom for the composition in Angstrom^3.

Return type:

float