Changeset 57


Ignore:
Timestamp:
Sep 19, 2014 4:59:53 PM (10 years ago)
Author:
JohnLightfoot
Message:

almost working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/commonobjects.py

    r41 r57  
     1import numpy as np
     2
    13class Axis(object):
    24    """Class to hold axis information.
     
    3133    """Class to hold 1d spectrum, with axis, units, title, etc.
    3234    """
    33     def __init__(self, data, axis=None, title='', units=''):
     35    def __init__(self, data, flag=None, axis=None, title='', units=''):
    3436        self.data = data.copy()
     37        if flag is None:
     38            self.flag = np.zeros(np.shape(data), np.bool)
     39        else:
     40            self.flag = flag.copy()
    3541        self.axis = axis
    3642        self.title = title
Note: See TracChangeset for help on using the changeset viewer.