Changeset 13407 for fact/tools/pyscripts
- Timestamp:
- 04/21/12 09:32:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/factfits.py
r13395 r13407 45 45 46 46 def _make_meta_dict(self): 47 """ This method retrieves meta information about the fits file and 48 stores this information in a dict 49 return: dict 50 key: string - all capital letters 51 value: tuple( numerical value, string comment) 52 """ 47 53 # intermediate variables for file metadata dict generation 48 54 keys=self.GetPy_KeyKeys() … … 81 87 82 88 def _make_columns_dict(self): 89 """ This method retrieves information about the columns 90 stored inside the fits files internal binary table. 91 returns: dict 92 key: string column name -- all capital letters 93 values: tuple( 94 number of elements in table field - integer 95 size of element in bytes -- this is not really interesting for any user 96 might be ommited in future versions 97 type - a single character code -- should be translated into 98 a comrehensible word 99 unit - string like 'mV' or 'ADC count' 100 """ 83 101 # intermediate variables for file table-metadata dict generation 84 102 keys=self.GetPy_ColumnKeys() … … 291 309 self.stacked_cols[col] = np.vstack( (self.stacked_cols[col],self.dict[col]) ) 292 310 else: 293 # elif isinstance(self.dict[col], ctypes._SimpleCData):294 311 self.stacked_cols[col] = np.vstack( (self.stacked_cols[col],np.array(self.dict[col])) ) 295 #else:296 #raise TypeError("I don't know how to stack "+col+". It is of type: "+str(type(self.dict[col])))297 298 299 300 301 312 self._current_row += 1 302 313 else:
Note:
See TracChangeset
for help on using the changeset viewer.