Skip to content

Commit

Permalink
typos, and re-instate setting first dataset
Browse files Browse the repository at this point in the history
Co-authored-by: Casper da Costa-Luis <[email protected]>
  • Loading branch information
KrisThielemans and casperdcl authored Jul 2, 2024
1 parent 68756d4 commit ee948ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions petric.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,19 @@ def get_data(srcdir=".", outdir=OUTDIR, sirf_verbosity=0):
[MetricsWithTimeout(outdir=OUTDIR / "Vision600_thorax")])]
else:
log.warning("Source directory does not exist: %s", SRCDIR)
data_dirs_metric = [(None, None, [])]
data_dirs_metrics = [(None, None, [])]

if __name__ == "__main__":
if __name__ != "__main__":
srcdir, outdir, metrics = data_dirs_metrics[0]
data = get_data(srcdir=srcdir, outdir=outdir)
metrics[0].reset()
else:
from docopt import docopt
args = docopt(__doc__)
logging.basicConfig(level=getattr(logging, args["--log"].upper()))
from main import Submission, submission_callbacks
assert issubclass(Submission, Algorithm)
for srcdir, outdir, metrics in data_dirs_metric:
for srcdir, outdir, metrics in data_dirs_metrics:
data = get_data(srcdir=srcdir, outdir=outdir)
metrics[0].reset() # timeout from now
algo = Submission(data)
Expand Down

0 comments on commit ee948ef

Please sign in to comment.