add_core

Stoner.core.utils.add_core(other: Union[DataFile, numpy.ndarray, List[Union[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