Skip to content

Commit 90de33f

Browse files
committed
netParams valid summary formatting (minor)
1 parent f6c4ee6 commit 90de33f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

netpyne/sim/setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ def initialize(netParams=None, simConfig=None, net=None):
9191

9292
if hasattr(sim.cfg, 'validateNetParams') and sim.cfg.validateNetParams: # whether to validate the input parameters
9393
try:
94-
print('Validating NetParams ...')
94+
print('\nValidating NetParams ...')
9595
sim.timing('start', 'validationTime')
9696
valid, failed = validator.validateNetParams(netParams)
9797
sim.timing('stop', 'validationTime')
9898
if failed:
9999
failedComps = [err.component for err in failed] # get failed component name
100100
failedComps = list(set(failedComps)) # keep unique elements only
101-
print(f"\n✋ NetParams validation identified some potential issues in {', '.join(failedComps)}. See above for details.")
101+
BOLD = "\033[1m"
102+
RESET = "\033[0m"
103+
print(f"\n✋ NetParams validation identified some potential issues in {BOLD}{', '.join(failedComps)}{RESET}. See above for details.")
102104
else:
103105
print("\n✅ NetParams validation successful.")
104106
except Exception as e:

0 commit comments

Comments
 (0)