pvdeg.utilities.read_material_property#

pvdeg.utilities.read_material_property(pvdeg_file: str = None, filepath: str = None, key: str = None, parameters: list[str] = None) dict[source]#

Read material parameters from a pvdeg/data file or JSON file path.

Parameters:
  • pvdeg_file (str) – keyword for material json file in pvdeg/data. Options: >>> “AApermeation”, “H2Opermeation”, “O2permeation”

  • filepath (str) – file path to material parameters json with same schema as material parameters json files in pvdeg/data. pvdeg_file will override fp if both are provided.

  • key (str) – key corresponding to specific material in the file. In the pvdeg files these have arbitrary names. Inspect the files or use display_json or search_json to identify the key for desired material.

Returns:

parameters (dict) – dictionary of material parameters from the selected file at the index key.