cratepy.ioput.incoutputfiles.interface.IncrementalOutputFile

class IncrementalOutputFile(file_path)[source]

Bases: ABC

Incremental output file interface.

_file_path

Output file path.

Type:

str

_header

List containing the header of each column (str).

Type:

list[str]

_col_width

Output file column width.

Type:

int

init_file(self)[source]

abstract: Open output file and write file header.

write_file(self)[source]

abstract: Write output file.

rewind_file(self, rewind_inc)[source]

Rewind output file.

Constructor.

Parameters:

file_path (str) – Output file path.

List of Public Methods

init_file

Open output file and write file header.

rewind_file

Rewind output file.

write_file

Write output file.

Methods

abstract __init__(file_path)[source]

Constructor.

Parameters:

file_path (str) – Output file path.

abstract init_file()[source]

Open output file and write file header.

rewind_file(rewind_inc)[source]

Rewind output file.

Parameters:

rewind_inc (int) – Increment associated with the rewind state.

abstract write_file()[source]

Write output file.