get_average_volume_from_mp

atomate2.common.jobs.mpmorph.get_average_volume_from_mp(composition, use_cached=True, **kwargs)[source]

Get the average volume per atom for a given composition from MP data.

This function will either make MP API calls or used cached data for the search.

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

  • use_cached (bool = True) – Whether to use cached MP data (True) or make calls to the MP API (False)

  • **kwargs (kwargs to pass to the volume/atom search functions, see) – get_average_volume_from_db_cached, get_average_volume_from_mp_api for specific kwargs.

Returns:

The average volume per atom for the composition.

Return type:

float