acep-uaf/MiGRIDS

save values stored in class list, not class list

jbvandermeer opened this issue · 1 comments

@mmuellerstoffels wtgP is a class list, so when saving the values, we should use self.wtgP[self.idx] = self.WF.wtgP[:] instead of self.wtgP[self.idx] = self.WF.wtgP. That is the reason why all values were the same in the saved nc file.

https://github.com/mmuellerstoffels/GBSTools/blob/d6d8c084f51cd0b3076def40e7d2fa735fca3b3a/GBSTool/GBSModel/SystemOperations.py#L275

Ok, I repaired this in SO.