add_core

Stoner.core.utils.add_core(other: DataFile | ndarray | List[float | int | complex] | Mapping, newdata: DataFile) DataFile[source]

Implement the core work of adding other to self and modifying newdata.

Parameters:
  • other (DataFile,array,list) – The data to be added

  • newdata (DataFile) – The instance to be modified

Returns:

newdata – A modified newdata