Changeset 13407 for fact/tools/pyscripts


Ignore:
Timestamp:
04/21/12 09:32:59 (12 years ago)
Author:
neise
Message:
added some comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/factfits.py

    r13395 r13407  
    4545
    4646    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        """
    4753        # intermediate variables for file metadata dict generation
    4854        keys=self.GetPy_KeyKeys()
     
    8187
    8288    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        """
    83101        # intermediate variables for file table-metadata dict generation
    84102        keys=self.GetPy_ColumnKeys()
     
    291309                    self.stacked_cols[col] = np.vstack( (self.stacked_cols[col],self.dict[col]) )
    292310                else:
    293 #                elif isinstance(self.dict[col], ctypes._SimpleCData):
    294311                    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                    
    301312            self._current_row += 1
    302313        else:
Note: See TracChangeset for help on using the changeset viewer.