db package

db.mldb module

db.mldb.buildBounded(pickle, baseFN)[source]
db.mldb.checkBounds(data, keys)[source]
db.mldb.findClosestIndex(myList, myNumber)[source]

Returns closest index to myNumber.

Assumes myList is sorted. If two numbers are equally close, return the smallest number.

class db.mldb.mldb(descr='')[source]

Bases: object

__init__(descr='')[source]

Initialize self. See help(type(self)) for accurate signature.

build(filename_postfix, path)[source]
buildASCII(path, dataDescriptionFile, dataFileName, interlockFileName)[source]

Build training set from archiver data obtained with the ArchiveExport command

The dataDescriptionFile will define the input (aka design) and output (aka object) variables

buildFromSDDS(baseFN, root, yNames)[source]

Build training set from sdds (simulation) data

Data obtained with for example OPAL The dataDescriptionFile will define the input (aka design) and output (aka object) variables

buildFromSampler(jsonFN, root, yNames, statBaseFn='', dbname='')[source]

Build training set from an OPAL sampler run

getAllDvar(gen)[source]
getAllDvarData()[source]
getAllObj(gen)[source]
getAllObjData()[source]
getBounds()[source]
getDVarVec(gen, indiv)[source]
getDvarsPD(ind=0)[source]
getNumberOfSamples()[source]
getObjVec(gen, indiv)[source]
getQoIsPD()[source]
getQoiDvarPD(ind=0)[source]
getSampleSize(i=0)[source]
getTimes(gen, indiv)[source]
getXDim()[source]
getXNames()[source]
getYDim()[source]
getYNames()[source]
load(filename)[source]
printOverview()[source]
writeDB(filename_postfix)[source]
db.mldb.strToFloat(in_array)[source]
db.mldb.substring_after(s, delim)[source]
db.mldb.substring_before(s, delim)[source]