add_core

Stoner.core.utils.add_core(other: Data | Sequence[float | int | complex] | ndarray[tuple[Any, ...], dtype[_ScalarT]] | Mapping, newdata: Data) Data[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