示例#1
0
def _tests():
    # Location
    modelLoc = pJoin(__neoMetaModel__._omfDir, "data", "Model", "admin",
                     "Automated Testing of " + modelName)
    # Blow away old test results if necessary.
    try:
        shutil.rmtree(modelLoc)
    except:
        # No previous test results.
        pass
    # Create New.
    new(modelLoc)
    # Pre-run.
    # renderAndShow(modelLoc)
    # Run the model.
    __neoMetaModel__.runForeground(modelLoc)
    # Show the output.
    __neoMetaModel__.renderAndShow(modelLoc)
示例#2
0
def _simpleTest():
    # Location
    modelLoc = pJoin(
        __neoMetaModel__._omfDir,
        "data",
        "Model",
        "admin",
        "Automated Testing of " + modelName,
    )
    # Blow away old test results if necessary.
    shutil.rmtree(modelLoc, ignore_errors=True)
    # Create New.
    new(modelLoc)
    # Pre-run.
    # renderAndShow(modelLoc)
    # Run the model.
    __neoMetaModel__.runForeground(modelLoc)
    # Show the output.
    __neoMetaModel__.renderAndShow(modelLoc)
示例#3
0
def _debugging():
    # outageCostAnalysis(omf.omfDir + '/static/publicFeeders/Olin Barre LatLon.omd', omf.omfDir + '/scratch/smartSwitching/Outages.csv', None, '60', '1')
    # Location
    modelLoc = pJoin(__neoMetaModel__._omfDir, 'data', 'Model', 'admin',
                     'Automated Testing of ' + modelName)
    # Blow away old test results if necessary.
    try:
        shutil.rmtree(modelLoc)
    except:
        # No previous test results.
        pass
    # Create New.
    new(modelLoc)
    # Pre-run.
    # renderAndShow(modelLoc)
    # Run the model.
    __neoMetaModel__.runForeground(modelLoc)
    # Show the output.
    __neoMetaModel__.renderAndShow(modelLoc)