Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions plantcv/parallel/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import time
import datetime
import plantcv.parallel
import plantcv.utils
import tempfile
import shutil

Expand Down Expand Up @@ -119,6 +120,16 @@ def main():
print(f"Processing results took {process_results_clock_time} seconds.", file=sys.stderr)
###########################################

# Convert json results to csv files
###########################################
# Convert results start time
convert_results_start_time = time.time()
print("Converting json to csv... ", file=sys.stderr)
plantcv.utils.json2csv(config.json, config.json)
convert_results_clock_time = time.time() - convert_results_start_time
print(f"Processing results took {convert_results_clock_time} seconds.", file=sys.stderr)
###########################################

# Cleanup
if config.cleanup is True:
shutil.rmtree(config.tmp_dir)
Expand Down
Loading