mcsas.utils.findmodels module¶
For use in gui/modelwidget.py, to help find valid calculation models
-
class
FindModels(*searchPaths)[source]¶ Bases:
objectFinds all methods of type ScatteringModel in the subdirectories starting from searchPath. searchPath defaults to the root mcsas pwd + “models”. returns a list of full paths, and a list of associated model names
-
classmethod
candidateFiles(*searchPaths)[source]¶ Warning
method ‘utils.findmodels.FindModels.candidateFiles’ undocumented
-
classmethod
getSearchPaths()[source]¶ Warning
method ‘utils.findmodels.FindModels.getSearchPaths’ undocumented
-
classmethod
-
classproperty(func)¶ Warning
function ‘utils.findmodels.classproperty’ undocumented
-
findFiles(searchPath, extension)[source]¶ generator for files ending in .py code from: http://stackoverflow.com/questions/2186525