pypest / pyemu

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

Matrix object has no attribute 'names' #513

Open wkitlasten opened 3 weeks ago

wkitlasten commented 3 weeks ago

pe = pyemu.ParameterEnsemble.from_gaussian_draw(pst=pst,num_reals=200, cov=m)

Produces:

 File "C:\modelling\pyemu\pyemu\en.py", line 996, in from_gaussian_draw
    df = Ensemble._gaussian_draw(
  File "C:\modelling\pyemu\pyemu\en.py", line 483, in _gaussian_draw
    for n in cov.names:
AttributeError: 'Matrix' object has no attribute 'names'

It seems it should be cov.row_names or cov.col_names, I'm guessing either?

jtwhite79 commented 3 weeks ago

I think m must be a Cov instance...