Browse Source

sort all the tags within one plugin when calling plugins interface.

tags/v1.1.0
wangshuide2020 5 years ago
parent
commit
e454cfa27b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindinsight/datavisual/data_transform/events_data.py

+ 1
- 1
mindinsight/datavisual/data_transform/events_data.py View File

@@ -155,7 +155,7 @@ class EventsData:
raise KeyError('Plugin %r could not be found.' % plugin_name) raise KeyError('Plugin %r could not be found.' % plugin_name)
with self._tags_by_plugin_mutex_lock[plugin_name]: with self._tags_by_plugin_mutex_lock[plugin_name]:
# Return a snapshot to avoid concurrent mutation and iteration issues. # Return a snapshot to avoid concurrent mutation and iteration issues.
return list(self._tags_by_plugin[plugin_name])
return sorted(list(self._tags_by_plugin[plugin_name]))


def tensors(self, tag): def tensors(self, tag):
""" """


Loading…
Cancel
Save