Ignore:
Timestamp:
Apr 8, 2010 4:12:05 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
edcbd467
Parents:
dce0756
Message:

add import copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant.py

    r518d35d r0a7c2f8  
    99""" 
    1010import wx 
     11from copy import deepcopy 
    1112from sans.invariant import invariant 
    1213 
     
    152153        id = None 
    153154        if hasattr(item,"id"): 
    154             id = copy.deepcopy(item.id) 
     155            id = deepcopy(item.id) 
    155156 
    156157        data = Data1D(x=item.x, y=item.y, dx=None, dy=None) 
     
    160161        data.name = item.name 
    161162        ## allow to highlight data when plotted 
    162         data.interactive = copy.deepcopy(item.interactive) 
     163        data.interactive = deepcopy(item.interactive) 
    163164        ## when 2 data have the same id override the 1 st plotted 
    164165        data.id = id 
Note: See TracChangeset for help on using the changeset viewer.