Skip to content

Commit

Permalink
Heta compiler ver message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Aug 16, 2024
1 parent 026c0da commit 38204b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/import_platform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ function Platform(
version::String
)
# TODO: semver approach might be better
# @assert version in SUPPORTED_VERSIONS "The model was build with Heta compiler \"$version\". This version is not supported by HetaSimulator. Please, re-build the model with HetaSimulator load_platform()"
@assert version == HETA_COMPILER_VERSION "The model was build with Heta compiler v$version, which is not supported.\n"*
"This HetaSimulator release includes Heta compiler v$HETA_COMPILER_VERSION. Please re-compile the model with HetaSimulator load_platform()."

print("Loading platform... ")
model_pairs = [pair[1] => Model(pair[2]...) for pair in pairs(models)]
Expand Down

0 comments on commit 38204b2

Please sign in to comment.