|
| def | lockobj (obj, locker=None) |
| |
| def | locking (func, locker=None) |
| |
| def | trylocking (func, locker=None) |
| |
| def | wrapper (func) |
| |
| def | delayedcall (func, args, kwargs, delay) |
| |
| def | delayedMethodWeak (obj, methname, delay=0) |
| |
| def | taskroutine (func, args, kwargs, taskLabel=None, selfName='task') |
| |
| def | taskmethod (meth, args, kwargs, taskLabel=None, taskName='task', mgrName='mgr') |
| |
| def | readBasicConfig (filename, evalfunc=ast.literal_eval) |
| |
| def | storeBasicConfig (filename, values) |
| |
| def | setTrace () |
| |
| def | getAppDir () |
| |
| def | getLibraryDir () |
| |
| def | setLogging (logfile='eidolon.log', filemode='a') |
| |
| def | addLibraryFile (lib, append=True) |
| |
| def | getVersionsFromRepoURL (url=None) |
| |
| def | processExists (pid) |
| |
| def | getWinDrives () |
| |
| def | getUsername () |
| |
| def | addPathVariable (varname, path, append=True) |
| |
| def | execfileExc (file_or_path, localvars, storeExcepts=True, streams=None) |
| |
| def | execBatchProgram (exefile, exeargs, kwargs) |
| |
| def | enumAllFiles (rootdir) |
| |
| def | checkValidPath (path) |
| |
| def | getValidFilename (name) |
| |
| def | hasExtension (path, exts) |
| |
| def | ensureExt (path, ext, replaceExt=False) |
| |
| def | splitPathExt (path, fullExt=False) |
| |
| def | timeBackupFile (filename, backDir=None) |
| |
| def | sortFilenameList (names, sortIndex, regex=None) |
| |
| def | isSameFile (src, dst) |
| |
| def | isTextFile (filename, bufferlen=512) |
| |
| def | copyfileSafe (src, dst, overwriteFile=False) |
| |
| def | renameFile (oldpath, newname, moveFile=True, overwriteFile=False) |
| |
| def | addCumulativeTime (name, val) |
| |
| def | printCumulativeTimes () |
| |
| def | timing (func) |
| |
| def | cumulativeTime (func) |
| |
| def | timingBlock (name, printEntry=True, addCumulative=False) |
| |
| def | argtiming (func) |
| |
| def | tracing (func) |
| |
| def | setmethod (obj, methname=None) |
| |
| def | traverseObj (obj, func, visited=()) |
| |
| def | isPicklable (obj) |
| |
| def | isIterable (obj) |
| |
| def | toIterable (obj) |
| |
| def | memoized (converter=lambda i:i, initialmemo={}) |
| |
| def | isMainThread () |
| |
| def | asyncfunc (func) |
| |
| def | partitionSequence (maxval, part, numparts) |
| |
| def | createShortName (comps, kwargs) |
| |
| def | uniqueStr (name, namelist, spacer='_') |
| |
| def | getStrSortIndices (strs, sortIndex, regex=None) |
| |
| def | getStrCommonality (str1, str2) |
| |
| def | getStrListCommonality (strs) |
| |
| def | findGlobMatch (globname, names) |
| |
| def | printFlush (args, kwargs) |
| |
| def | setStrIndent (s, indent=0, useTab=False) |
| |
| def | getUnitValue (val) |
| |
| def | getPaddedNum (val, maxval) |
| |
| def | parseSequenceSpec (spec, maxval) |
| |
| def | epsilonZero (val) |
| |
| def | isInEpsilonRange (val, minv, maxv) |
| |
| def | checkNan (val) |
| |
| def | indexList (indices, lst) |
| |
| def | rotateIndices (start, numinds) |
| |
| def | sortIndices (lst) |
| |
| def | sortedInsert (lst, val) |
| |
| def | minmaxIndices (lst) |
| |
| def | fcomp (funcs) |
| |
| def | first (iterable, default=None) |
| |
| def | last (iterable, default=None) |
| |
| def | prod (i, initial=1) |
| |
| def | listSum (lists) |
| |
| def | zipWith (op, vals) |
| |
| def | mulsum (ls, rs) |
| |
| def | successive (iterable, width=2, cyclic=False) |
| |
| def | group (iterable, width=2) |
| |
| def | matIter (mat) |
| |
| def | matIndices (mat, start=0) |
| |
| def | arrayIndex (inds, dims, circular) |
| |
| def | xisToPiecewiseXis (xis, dims, limits=None) |
| |
| def | frange (start, stop=None, step=None) |
| |
| def | trange (vals) |
| |
| def | binom (n, k) |
| |
| def | bern (n, i, u) |
| |
| def | clamp (val, minv, maxv) |
| |
| def | lerp (val, v1, v2) |
| |
| def | lerpXi (val, minv, maxv) |
| |
| def | avg (vals, initial=0.0) |
| |
| def | mag (vals) |
| |
| def | stddev (vals, initial=0.0) |
| |
| def | avgspan (vals) |
| |
| def | minmaxval (minv, maxv, val) |
| |
| def | minmax (items, kwargs) |
| |
| def | radCircularConvert (rad) |
| |
| def | radClamp (rad) |
| |
| def | getClosestPower (val) |
| |
| def | generatePoisson2D (width, height, ptscount, mindist=None, startpt=None) |
| |
| def | generatePoisson3D (width, height, depth, ptscount, mindist=None, startpt=None) |
| |
| def | unitWave2RGB (vis_range) |
| |
| def | wave2RGB (wavelength) |
| |
| def | arrayV (val, dims) |
| |
| def | assertMatDim (mat, n, m) |
| |