SingleDefConc#

class SingleDefConc(name, charge, conc)[source]#

Bases: MSONable

Object to store defect concentrations data. It is also subscribtable like a dictionary.

Parameters:
  • name (str) – Name of defect specie.

  • charge (int) – Charge of defect specie.

  • conc (float) – Concentration value.

Methods

as_dict

A JSON serializable dict representation of an object.

copy

from_dict

Reconstruct an MSONable object from a dict.

items

Returns dictionary-like key-value pairs of the object's attributes.

keys

Returns dictionary-like keys of the object's attributes.

load

Load an instance from a JSON file written by save().

save

Serialize the instance to JSON on disk, pickling fields if needed.

to_json

Returns a json string representation of the MSONable object.

unsafe_hash

Return a hash of the current object.

validate_monty_v1

Pydantic validator with correct signature for pydantic v1.x.

validate_monty_v2

Pydantic validator with correct signature for pydantic v2.x.

values

Returns dictionary-like values of the object's attributes.

Attributes

REDIRECT

copy()[source]#
items()[source]#

Returns dictionary-like key-value pairs of the object’s attributes.

keys()[source]#

Returns dictionary-like keys of the object’s attributes.

values()[source]#

Returns dictionary-like values of the object’s attributes.