pypest / pyemu

python modules for model-independent uncertainty analyses, data-worth analyses, and interfacing with PEST(++)
BSD 3-Clause "New" or "Revised" License
174 stars 95 forks source link

parrep bug? #504

Open RyanConway91 opened 4 months ago

RyanConway91 commented 4 months ago

In order to get this code to work:

import pyemu 
f_pst = 'gully30.pst'
pst = pyemu.Pst('gully30.pst')
pst.parrep("gully30.2.par.csv", noptmax=0,real_name = "175")
pst.write(f_pst.replace('.pst','_opt.pst'))

I had to add the ":" to this line in pst_handler.py image

jtwhite79 commented 4 months ago

That line, while convoluted, seems to work for me at least for the simple tests that cover it. Maybe you are storing your ensembles in transposed format? either way, that line could be cleaned up..I'll refactor it for the next release