Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Add assertion that at least one base model was specified and throw an error message otherwise. #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions model_tools/check_submission/check_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def check_brain_model_processing(model):

def check_base_models(module):
module = __import__(module)
assert len(module.get_model_list()) >= 1, 'No base models were specified!'
for model in module.get_model_list():
layers = module.get_layers(model)
assert layers is not None
Expand Down