Skip to content
Snippets Groups Projects
Commit fd3b2f9e authored by Eva Schiffer's avatar Eva Schiffer Committed by GitHub
Browse files

Merge pull request #6 from adesmet-ssec/sort-stats

Sort variables in output from stats & inspectStats.
parents 6c22b6b6 eb6f1257
No related branches found
No related tags found
No related merge requests found
......@@ -1024,8 +1024,8 @@ 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:
for name, epsilon, missing in sorted(names, key=lambda X:X[0]):
# make sure that it's possible to load this variable
if not(aFile.is_loadable_type(name)) or not(bFile.is_loadable_type(name)) :
......@@ -1103,9 +1103,9 @@ 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
for name, epsilon, missing in names:
for name, epsilon, missing in sorted(names, key=lambda X:X[0]):
# make sure that it's possible to load this variable
if not(aFile.is_loadable_type(name)) :
LOG.warn(name + " is of a type that cannot be loaded using current file handling libraries included with Glance." +
......
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