Skip to content

Commit e7c3964

Browse files
authored
FIX: wrong atribute order in __getitem__ method
Switched order of mean and uncertainty when unpacking or using list properties to access the labfloat attributes
1 parent ac74da1 commit e7c3964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labfis/uncertainty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def uncertainty(self):
179179
return self._uncertainty
180180

181181
def __getitem__(self, idx):
182-
vals = (self.uncertainty, self.mean)
182+
vals = (self.mean, self.uncertainty)
183183
return vals[idx]
184184

185185
def __pos__(self):

0 commit comments

Comments
 (0)