Changeset 41


Ignore:
Timestamp:
Jun 10, 2014 10:42:38 AM (10 years ago)
Author:
JohnLightfoot
Message:

copy numpy arrays to avoid misleading results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/commonobjects.py

    r35 r41  
    33    """
    44    def __init__(self, data, title='', units=''):
    5         self.data = data
     5        self.data = data.copy()
    66        self.title = title
    77        self.units = units
     
    1212    """
    1313    def __init__(self, data, axes=[], title='', units=''):
    14         self.data = data
     14        self.data = data.copy()
    1515        self.axes = axes
    1616        self.title = title
     
    2222    """
    2323    def __init__(self, data, axes=[], title='', units=''):
    24         self.data = data
     24        self.data = data.copy()
    2525        self.axes = axes
    2626        self.title = title
     
    3232    """
    3333    def __init__(self, data, axis=None, title='', units=''):
    34         self.data = data
     34        self.data = data.copy()
    3535        self.axis = axis
    3636        self.title = title
Note: See TracChangeset for help on using the changeset viewer.