copy_into

Stoner.tools.copy_into(source: DataFile, dest: DataFile) DataFile[source]

Copy the data associated with source to dest.

Parameters:
  • source (DataFile) – The DataFile object to be copied from

  • dest (DataFile) – The DataFile objrct to be changed by receiving the copiued data.

Returns:

The modified dest DataFile.

Unlike copying or deepcopying a DataFile, this function preserves the class of the destination and just overwrites the attributes that represent the data in the DataFile.