def data ( self , data ) : self . _data = { det : d . copy ( ) for ( det , d ) in data . items ( ) }
python dictionary value change copy
Store a copy of the data .
def data(self, data):
        """Store a copy of the data."""
        self._data = {det: d.copy() for (det, d) in data.items()}