Skip to content

Commit

Permalink
Fix broken default name td script and raise error if no dataset (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema committed Dec 1, 2022
1 parent 4e2f0c8 commit 5fd40ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions asreviewcontrib/makita/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def _template(self, args_name, args_program):
datasets = list(Path(args.s).glob("*.csv")) \
+ list(Path(args.s).glob("*.ris")) + list(Path(args.s).glob("*.xlsx"))

# throw exception if no datasets are found
if len(datasets) == 0:
raise ValueError("No datasets found in the specified folder.")

# create output folder
Path(args.o).parent.mkdir(parents=True, exist_ok=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if __name__ == "__main__":
parser.add_argument(
"-s",
type=str,
default="output/simulation/*/metrics_sim_*.json",
default="output/simulation/*/metrics/metrics_sim_*.json",
help="metrics location")
parser.add_argument(
"-o",
Expand Down

0 comments on commit 5fd40ed

Please sign in to comment.