casm.project.write_eci
- casm.project.write_eci(proj, eci, fit_details=None, clex=None, verbose=False)[source]
Write eci.json
- Parameters:
proj (casm.project.Project) – The CASM project
eci (List[(index, value)]) –
List of tuple containing basis function index and coefficient value:
index (int): linear index of basis function value (float): ECI value
fit_details (Dict) – Description of the fitting method used to generate the ECI, usually as output by casm.learn.to_json. It is added to the eci.json file under the attribute “fit”.
clex (casm.project.ClexDescription) – Specifies where to write the ECI. Default value is proj.settings.default_clex.