Skip to content

Commit

Permalink
test and autopipe fixed
Browse files Browse the repository at this point in the history
Former-commit-id: 9cc88b1
  • Loading branch information
Vishwesh4 committed Dec 9, 2021
1 parent a27dc3c commit 2aca001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion imgtools/autopipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import datetime
import numpy as np
import json
import shutil
###############################################################
# Example usage:
# python radcure_simple.py ./data/RADCURE/data ./RADCURE_output
Expand Down Expand Up @@ -190,8 +191,8 @@ def save_data(self):
with open(file) as f:
metadata = json.load(f)
self.output_df.loc[subject_id, list(metadata.keys())] = list(metadata.values())
os.remove(file)
self.output_df.to_csv(self.output_df_path)
shutil.rmtree(os.path.join(self.output_directory,".temp"))

def run(self):
"""Execute the pipeline, possibly in parallel.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_autopipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def test_pipeline(dataset_path,modalities):
os.remove(crawl_path)
os.remove(json_path)
os.remove(edge_path)
# shutil.rmtree(output_path_mod)
shutil.rmtree(output_path_mod)


0 comments on commit 2aca001

Please sign in to comment.