diff --git a/nengo_dl/simulator.py b/nengo_dl/simulator.py index 63578dddd..ce2c9a088 100644 --- a/nengo_dl/simulator.py +++ b/nengo_dl/simulator.py @@ -1767,10 +1767,15 @@ def _standardize_data(self, data, objects, broadcast_unary=False): if isinstance(data, (list, tuple)): if len(data) != len(objects): warnings.warn( - "Number of data values (%d) does not match number of %ss (%d); " - "consider using an explicit input dictionary in this " + "Number of elements (%d) in %s does not match number of " + "%ss (%d); consider using an explicit input dictionary in this " "case, so that the assignment of data to objects is unambiguous." - % (len(data), type(objects[0]).__name__, len(objects)) + % ( + len(data), + [type(d).__name__ for d in data], + type(objects[0]).__name__, + len(objects), + ) ) # convert list to named dict