morpheus.controllers.write_to_file_controller.WriteToFileController

(Latest Version)
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
filename

The output file name.

overwrite

Flag to indicate whether to overwrite an existing file.

file_type

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

include_index_col

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

flush

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 2024, NVIDIA. Last updated on Apr 25, 2024.