Changeset 57
- Timestamp:
- Sep 19, 2014 4:59:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/commonobjects.py
r41 r57 1 import numpy as np 2 1 3 class Axis(object): 2 4 """Class to hold axis information. … … 31 33 """Class to hold 1d spectrum, with axis, units, title, etc. 32 34 """ 33 def __init__(self, data, axis=None, title='', units=''):35 def __init__(self, data, flag=None, axis=None, title='', units=''): 34 36 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() 35 41 self.axis = axis 36 42 self.title = title
Note:
See TracChangeset
for help on using the changeset viewer.