Skip to content
Open
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
12 changes: 6 additions & 6 deletions src/master_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,21 +681,21 @@ async def main(cfg, test_method, args):
assert os.path.exists(args.clips), f"No csv file containing clips in {args.clips}"
elif cfg.has_option('RatingClips', 'RatingClipsConfigurations'):
assert len(cfg['RatingClips']['RatingClipsConfigurations']) > 0, f"No cloud store for clips specified in config"
else:
assert True, "Neither clips file not cloud store provided for rating clips"
else:
raise ValueError("Neither clips file nor cloud store provided for rating clips")

if args.gold_clips:
assert os.path.exists(args.gold_clips), f"No csv file containing gold clips in {args.gold_clips}"
elif cfg.has_option('GoldenSample', 'Path'):
assert len(cfg['GoldenSample']['Path']) > 0, "No golden clips store found"
else:
assert True, "Neither gold clips file nor store configuration provided"
else:
raise ValueError("Neither gold clips file nor store configuration provided")

if args.trapping_clips:
assert os.path.exists(args.trapping_clips), f"No csv file containing trapping clips in {args.trapping_clips}"
elif cfg.has_option('TrappingQuestions', 'Path'):
assert len(cfg['TrappingQuestions']['Path']) > 0, "No golden clips store found"
else:
assert True, "Neither Trapping clips file nor store configuration provided"
else:
raise ValueError("Neither trapping clips file nor store configuration provided")

asyncio.run(main(cfg, test_method, args))