morpheus.controllers.write_to_file_controller.WriteToFileController

class WriteToFileController(filename, overwrite, file_type, include_index_col, flush)[source]

Bases: object

Controller class for writing data to a file with customizable options.

Parameters
filenamestr

The output file name.

overwritebool

Flag to indicate whether to overwrite an existing file.

file_typeFileTypes

The type of the output file (e.g., CSV, JSON).

include_index_colbool

Flag to indicate whether to include the index column in the output.

flushbool

Flag to indicate whether to flush the output file after writing.

Attributes
file_type

Get the type of the output file.

flush

Get the flag indicating whether to flush the output file after writing.

include_index_col

Get the flag indicating whether to include the index column in the output.

output_file

Get the output file name.

overwrite

Get the flag indicating whether to overwrite an existing file.

Methods

node_fn
property file_type

Get the type of the output file.

property flush

Get the flag indicating whether to flush the output file after writing.

property include_index_col

Get the flag indicating whether to include the index column in the output.

property output_file

Get the output file name.

property overwrite

Get the flag indicating whether to overwrite an existing file.

Previous morpheus.controllers.write_to_file_controller
Next morpheus.io
© Copyright 2023, NVIDIA. Last updated on Feb 2, 2024.