Skip to content

Commit 6285b8c

Browse files
committed
Less verbose
1 parent a508aba commit 6285b8c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

omv/engines/pynest.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@ def is_installed():
2020

2121
ret = True
2222
try:
23-
print('PN1')
23+
#print('PN1')
2424
try:
25-
print('PN1a')
25+
#print('PN1a')
2626
ret_str_cmd_line = check_output(['python -c "import nest; print(nest.__version__ if hasattr(nest,\'__version__\') else nest.version())"'], shell=True, verbosity=2)
2727

2828
#if is_verbose():
2929
# inform("NEST cmd line test: <<<%s>>>" % (ret_str_cmd_line), indent=2)
3030
ret_str = ret_str_cmd_line.split('Version: ')[1].split('Built:')[0].strip()
3131
#print("ret_str: %s"%ret_str)
3232
except Exception as e:
33-
print('NEST exc: %s'%e)
33+
if is_verbose():
34+
print('NEST installed check exception: %s'%e)
3435
import nest
35-
print('PN2')
36+
#print('PN2')
3637
if hasattr(nest,'__version__'):
37-
print('PN3')
38+
#print('PN3')
3839
ret_str = nest.__version__
3940
else:
40-
print('PN4')
41+
#print('PN4')
4142
ret_str = nest.version()
4243

4344
ret = len(ret_str) > 0

0 commit comments

Comments
 (0)