Skip to content

Commit

Permalink
Merge remote-tracking branch 'clinssen/symboltable_checks' into nestm…
Browse files Browse the repository at this point in the history
…l_include
  • Loading branch information
C.A.P. Linssen committed Oct 7, 2024
2 parents 5f93cdb + 3bae190 commit ac766f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pynestml/frontend/pynestml_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,15 @@ def process() -> bool:
# validation -- check cocos for models that do not have errors already
excluded_models = []
for model in models:
if not Logger.has_errors(model.name):
CoCosManager.check_cocos(model)

if Logger.has_errors(model.name):
code, message = Messages.get_model_contains_errors(model.get_name())
Logger.log_message(node=model, code=code, message=message,
error_position=model.get_source_position(),
log_level=LoggingLevel.WARNING)
excluded_models.append(model)
else:
CoCosManager.check_cocos(model)

# exclude models that have errors
models = list(set(models) - set(excluded_models))
Expand Down

0 comments on commit ac766f0

Please sign in to comment.