Package PyFoam :: Package Basics :: Module CSVCollection :: Class CSVCollection
[hide private]
[frames] | no frames]

Class CSVCollection

source code

object --+
         |
        CSVCollection

Collects data like a dictionary. Writes it to a line in a CSV-file. If the dictionary is extended the whole file is rewritten

Instance Methods [hide private]
 
__init__(self, name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setitem__(self, key, value)
Sets a value in the current dataset
source code
 
write(self)
Writes a line to disk and starts a new one
source code
 
clear(self)
Resets the last line
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • name - name of the file
Overrides: object.__init__

__setitem__(self, key, value)
(Index assignment operator)

source code 

Sets a value in the current dataset

Parameters:
  • key - the key
  • value - and it's value