Ejemplo n.º 1
0
def step3(sFilename_pest_configuration_in, sFilename_model_configuration_in):
    aParameter_pest = pypest_read_pest_configuration_file(
        sFilename_pest_configuration_in)
    aParameter_pest[
        'sFilename_pest_configuration'] = sFilename_pest_configuration_in
    oPest = pypest(aParameter_pest)
    aParameter_model = pypest_read_model_configuration_file(
        sFilename_model_configuration_in)
    aParameter_model[
        'sFilename_model_configuration'] = sFilename_model_configuration_in
    oMaces = maces(aParameter_model)
    run_step3(oPest, oMaces)
    return
Ejemplo n.º 2
0
def step6(sFilename_pest_configuration_in, sFilename_model_configuration_in):
    aParameter_pest = pypest_read_configuration_file(
        sFilename_pest_configuration_in)
    aParameter_pest[
        'sFilename_pest_configuration'] = sFilename_pest_configuration_in
    oPest = pypest(aParameter_pest)
    aParameter_model = pypest_read_configuration_file(
        sFilename_model_configuration_in)
    aParameter_model[
        'sFilename_model_configuration'] = sFilename_model_configuration_in
    oMaces = maces(aParameter_model)

    pypest_prepare_pest_instruction_files(oPest, oMaces)
    return
    run_step1(oPest_in, oModel_in)
    run_step2(oPest_in, oModel_in)
    run_step6(oPest_in, oModel_in)

    return


if __name__ == '__main__':
    sFilename_pest_configuration = '/qfs/people/liao313/workspace/python/pypest/pypest/pypest/models/maces/config/pypest.xml'
    sFilename_model_configuration = '/qfs/people/liao313/workspace/python/pypest/pypest/pypest/models/maces/config/model_calibration.xml'

    aParameter_pest = pypest_read_pest_configuration_file(
        sFilename_pest_configuration)
    aParameter_pest[
        'sFilename_pest_configuration'] = sFilename_pest_configuration
    oPest = pypest(aParameter_pest)

    #we need to add the alternative model information into the model
    aMinac_models = ['F06', 'T03', 'KM12', 'M12', 'F07', 'VDK05', 'DA07']
    aOmac_model = models = ['M12', 'DA07', 'KM12', 'K16']

    #sDate = '20210213'
    #iCase_index=1
    aParameter_model = pypest_read_model_configuration_file(
        sFilename_model_configuration)  #, \
    #   sDate_in = sDate, \
    #      iCase_index_in = iCase_index)

    aParameter_model[
        'sFilename_model_configuration'] = sFilename_model_configuration
    oMaces = maces(aParameter_model)