Skip to content

Add parameters list file produces tpl file that seems to be incompatible with input file #193

@aymanalz

Description

@aymanalz

pf.add_parameters(filenames= "sfr_cond.csv", use_cols = ["cond_value"], par_type='grid', index_cols=['ZoneID'],
par_name_base="sfr_", pargp="sfr_cn", upper_bound = 1.5, lower_bound=0.5)

The parameter input file "sfr_cond.csv" is

Unnamed: 0 | parnme | cond_value | ZoneID
0 | sfr_zone_0 | 9.879605293 | 0
1 | sfr_zone_1 | 0.003133586 | 1
2 | sfr_zone_2 | 0.138467833 | 2
3 | sfr_zone_3 | 2.117573261 | 3
4 | sfr_zone_4 | 0.042645961 | 4
5 | sfr_zone_5 | 8.667610168 | 5
6 | sfr_zone_6 | 20.70874214 | 6
7 | sfr_zone_7 | 23.52819443 | 7
8 | sfr_zone_8 | 3.487426519 | 8
9 | sfr_zone_9 | 18.8850708 | 9
10 | sfr_zone_10 | 6.028618336 | 10

the resulting tpl file is
ptf ~
,sidx,idx_strs,xy,x,y,pargpcond_value,parval1_cond_value,cond_value
0,"(-1,)",ZoneID:-1,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:-1 ~
1,"(0,)",ZoneID:0,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:0 ~
2,"(1,)",ZoneID:1,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:1 ~
3,"(7,)",ZoneID:7,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:7 ~
4,"(2,)",ZoneID:2,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:2 ~
5,"(8,)",ZoneID:8,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:8 ~
6,"(3,)",ZoneID:3,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:3 ~
7,"(9,)",ZoneID:9,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:9 ~
8,"(4,)",ZoneID:4,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:4 ~
9,"(5,)",ZoneID:5,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:5 ~
10,"(6,)",ZoneID:6,"(None, None)",,,sfr_cn,1.0,~ sfr__inst:0_usecol:cond_value_ZoneID:6 ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions