@classmethod
def _string_to_regulation_mode(cls, s):
    """Converts a human readable sting to regModeS.
        """
    reg_mode_s = 0
    if s == u'uPv':
        reg_mode_s = 1
    elif s == u'iPv':
        reg_mode_s = 2
    elif s == u'pPv':
        reg_mode_s = 4
    elif s == u'iBat':
        reg_mode_s = 8
    elif s == u'PVSim':
        reg_mode_s = 16
    elif s == u'IUcurve':
        reg_mode_s = 32
    return reg_mode_s
