Skip to content

Commit

Permalink
Update NEST version for 2.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbabu committed Jun 26, 2023
1 parent ddf0403 commit 09e347b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pynestml/codegeneration/nest_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def detect_nest_version(cls) -> str:
try:
import nest
vt = nest.Create("volume_transmitter")
nest_version = "v" + nest.__version__
if "post0.dev0" in nest_version:
nest_version = "master"
try:
if "DataConnect" in dir(nest):
nest_version = "v2.20.2"
else:
nest_version = "v" + nest.__version__
except:
pass
except ModuleNotFoundError:
nest_version = ""
Expand Down

0 comments on commit 09e347b

Please sign in to comment.