mcsas.utils.findmodels module

For use in gui/modelwidget.py, to help find valid calculation models

class FindModels(*searchPaths)[source]

Bases: object

Finds 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 libraryPath()[source]

Warning

method ‘utils.findmodels.FindModels.libraryPath’ undocumented

classmethod rootName()[source]

Warning

method ‘utils.findmodels.FindModels.rootName’ undocumented

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

reorder(indata, priorityKeys)[source]

Warning

function ‘utils.findmodels.reorder’ undocumented