示例#1
0
info.param('eut.f_min',
           label='Minimum frequency in the continuous operating region (Hz)',
           default=56.)
info.param(
    'eut.imbalance_resp',
    label='EUT response to phase imbalance is calculated by:',
    default='EUT response to the average of the three-phase effective (RMS)',
    values=[
        'EUT response to the individual phase voltages',
        'EUT response to the average of the three-phase effective (RMS)',
        'EUT response to the positive sequence of voltages'
    ])

# Other equipment parameters
der.params(info)
gridsim.params(info)
pvsim.params(info)
das.params(info)
hil.params(info)

# Add the SIRFN logo
info.logo('sirfn.png')


def script_info():
    return info


if __name__ == "__main__":

    # stand alone invocation
    except Exception, e:
        ts.log_error('Test script exception: %s' % traceback.format_exc())
        rc = 1

    sys.exit(rc)

info = script.ScriptInfo(name=os.path.basename(__file__), run=run, version='1.0.0')

info.param_group('profile', label='FW Profile')
info.param('profile.profile_name', label='Simulation profile', default='FW Profile',
           values=['FW Profile', 'VV Profile', 'Manual'],
           desc='"Manual" is reserved for not running a profile.')

#Grid simulator
gridsim.params(info, '1', 'Grid Simulation 1')
gridsim.params(info, '2', 'Grid Simulation 2')

def script_info():
    return info


if __name__ == "__main__":


    # stand alone invocation
    config_file = None
    if len(sys.argv) > 1:
        config_file = sys.argv[1]

    test_script = script.Script(info=script_info(), config_file=config_file)