copy_data¶
-
sherpa.astro.ui.
copy_data
(fromid, toid)¶ Copy a data set to a new identifier.
This is a “deep” copy, so that once it has been made, changes to one of the data sets will not be made to the other data set.
Parameters: - fromid (int or str) – The input data set.
- toid (int or str) – The output data set.
Raises: sherpa.utils.err.IdentifierErr
– If there is no data set with afromid
identifier.Examples
>>> copy_data(1, 2)
>>> copy_data(2, "orig")