Esempio n. 1
0
    def __init__(self,potentialname,element,verified=False,verify=False,write=False,*args,**kwargs):
        #store how it was called
        self.potentialname = potentialname.encode('ascii')
        self.element = element.encode('ascii')
        self.verify = verify
        self.write = write
        self.args = args
        self.kwargs = kwargs
        
        #place where atomic configurations are stored
        self.slab = None

        self.dependencies = []

        self.result_names = []

        self.logger = logger.getChild(self.__class__.__name__)
Esempio n. 2
0
The BaseTest handles initialization of the form
    BaseTest( potentialname, element symbol, TestDependencies List, others)
 """

#standard imports
import argparse

from openkimtests.bin.logger import logger

import openkimtests.bin.pipeline as pipeline
import openkimtests.bin.db as db

import ase

logger = logger.getChild('Test')

from openkimtests.bin import potential


#helpful rename
request = pipeline.request

class LackingResults(Exception):
    """ The LackingResults exception, raised if the test doesn't have a results method """

class LackingVerify(Exception):
    """ The LackingVerify method, to be raised if the test doesn't override the verify method """

class BaseTest(object):
    """This is the Base Test from which all other Tests inherit."""