Skip to content

Commit

Permalink
Use network's class name if more informative.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed Jan 12, 2019
1 parent be174f6 commit dc9e56c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nengo_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import logging
import os
import re
import socket
import threading
import time
Expand Down Expand Up @@ -376,6 +377,9 @@ def get_label(self, obj, default_labels=None):
assert label is not None
if '.' in label:
label = label.rsplit('.', 1)[1]
if (re.match(r'networks\[\d+\]', label)
and obj.__class__.__name__ != 'Network'):
label = obj.__class__.__name__
return label

def get_uid(self, obj, default_labels=None):
Expand Down

0 comments on commit dc9e56c

Please sign in to comment.