exosim.output.setOutput#

Classes#

SetOutput

It sets the output for the code.

Module Contents#

class SetOutput(filename=None, replace=True)[source]#

Bases: exosim.log.Logger

It sets the output for the code. This class created and initializes the output file. If a file name is provided, it loads the relative Output class is instatiated. Otherwise an HDF5Output is used by default for a temporary file.

Parameters:
  • filename (str) –

  • replace (bool) –

use(append=True, cache=False)[source]#

It returns the Output with file opened and ready to write

Parameters:
  • append (bool (optional)) – True to append data to already existing file. Default is True.

  • cache (bool (optional)) – True to write data in caching mode. Default is False.

Returns:

output class instantiated.

Return type:

Output

open()[source]#

It returns the Output with file opened and ready to read

Returns:

output class instantiated.

Return type:

Output

delete()[source]#

It deletes the output file created.

Return type:

None