Revert changes remove associatePWeight. Add to generate to take functions that can fail.
Use generate with failure to generate a list of pweight corresponding to all sums of simple root - so all positive root.s Use to define weyl dimension.