THA::SetError in python

hi

i’m trying to change a TH1 error bars using the SetError method.in python
The input of this method should be an array of const Double_t (const Double_t *error)

i tried several method to make it works :
** Notpl.SetError(err)
where err was a regular python list filled with float, a python list filled with ROOT.Double numbers,
an python array, but nothing was correct, it always gave me
«
File “Stange_errors.py”, line 139, in
Notpl.SetError(Nerrp);
TypeError: void TH1::SetError(const Double_t* error) =>
could not convert argument 1
»

any idea of how to use this method ?
thanks in advance
jb

Please report python/pyroot problems to the dedicated thread

Rene

Moved.

Axel,

TS had already opened another:

Pointer in python i.e TH1::SetError

Cheers,
Wim