Skip to content
Snippets Groups Projects
Commit 6ec2323e authored by Alan De Smet's avatar Alan De Smet
Browse files

Sort variables in output from stats & inspectStats.

Previously output was ordered in whatever order the set happened to offer them in. This was not stable between different Python versions.  Ordered alphabetically(ish) should be more human friendly, and will simplify the tests.
parent 30310bb7
No related branches found
No related tags found
No related merge requests found
......@@ -1023,8 +1023,10 @@ def stats_library_call(afn, bfn, var_list=[ ],
LOG.debug(str(names))
doc_each = do_document and len(names)==1
doc_atend = do_document and len(names)!=1
for name, epsilon, missing in names:
sorted_names = sorted(names, None, lambda X:X[0]);
for name, epsilon, missing in sorted_names:
# make sure that it's possible to load this variable
if not(aFile.is_loadable_type(name)) or not(bFile.is_loadable_type(name)) :
......@@ -1102,8 +1104,10 @@ def inspect_stats_library_call (afn, var_list=[ ], options_set={ }, do_document=
LOG.debug(str(names))
doc_each = do_document and len(names)==1
doc_atend = do_document and len(names)!=1
sorted_names = sorted(names, None, lambda X:X[0]);
for name, epsilon, missing in names:
for name, epsilon, missing in sorted_names:
# make sure that it's possible to load this variable
if not(aFile.is_loadable_type(name)) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment