Skip to content

Commit

Permalink
Merge pull request #154 from george0st/change
Browse files Browse the repository at this point in the history
Small tuning
  • Loading branch information
george0st authored Apr 18, 2024
2 parents a04188a + 3749e98 commit 6398032
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/todo_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

The list of expected/future improvements:

0. Extend unit tests (if header exists)
1. Add ability to select type of output format (CSV or parquet) in commandline)
2 changes: 1 addition & 1 deletion generator/base_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def save(self, path, dir: str, compress: bool):

# write CSV
output_csv = os.path.join(path, f"{self.name}.csv.gz" if compress else f"{self.name}.csv")
append_csv=True if os.path.isfile(output_csv) else False
append_csv=False if (self._parquet_writer is None) else True
df.to_csv(output_csv,
header=False if append_csv else True,
index=False,
Expand Down

0 comments on commit 6398032

Please sign in to comment.