Skip to content

Commit

Permalink
Merge pull request #245 from tosemml/patch-1
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
gugarosa authored Sep 15, 2023
2 parents 3503870 + acf7a84 commit 0f55ccb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/face_segmentation/snp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def main():
sys.exit(1)

store = configure_store(aml_config)
fully_trained = []
for e in store.get_all_status_entities(status='complete'):
if metric_key in e:
fully_trained += [e]

fully_trained = [
e for e in store.get_all_status_entities(status='complete')
if metric_key in e
]
if len(fully_trained) == 0:
print(f"No 'complete' models found with required metric '{metric_key}'")
sys.exit(1)
Expand Down

0 comments on commit 0f55ccb

Please sign in to comment.