Skip to content

Commit

Permalink
Merge pull request #15 from cwharris/to-file-fix-overwrite
Browse files Browse the repository at this point in the history
Fix `to_file` "overwrite" flag so it actually overwrites the file instead of raising an error.
  • Loading branch information
cwharris authored Apr 24, 2022
2 parents dfd0f0a + 6a4cc18 commit 1f57203
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morpheus/pipeline/output/to_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def _build_single(self, seg: neo.Segment, input_stream: StreamPair) -> StreamPai
if (self._build_cpp_node()):
to_file = neos.WriteToFileStage(seg,
self.unique_name,
self._output_file, ("w+" if self._overwrite else "w"),
self._output_file,
"w",
self._file_type)
else:

Expand Down

0 comments on commit 1f57203

Please sign in to comment.