Skip to content

Commit

Permalink
Refs #6101. Adding option to return versions of algorithms as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 27, 2013
1 parent 8c1117e commit 2ba2483
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Code/Mantid/Build/wiki_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ def initialize_Mantid(mantidpath):
mantid_initialized = True

#======================================================================
def get_all_algorithms():
"""REturns a list of all algorithm names"""
def get_all_algorithms(withversion=False):
"""Returns a list of all algorithm names"""
temp = mtd._getRegisteredAlgorithms(True)
print temp
algos = [x for (x, version) in temp]
return algos
if withversion:
return temp
else:
algos = [x for (x, version) in temp]
return algos

#======================================================================
def find_misnamed_algos():
Expand Down

0 comments on commit 2ba2483

Please sign in to comment.