Skip to content

Commit

Permalink
python compat
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 3, 2023
1 parent 2734228 commit 3d1fb37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getdist/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ def __init__(self, ncol, results, limit=2, tableParamNames=None, titles=None, fo
"""
results = list(makeList(results))
for i, res in enumerate(results):
if getMargeStats := getattr(res, "getMargeStats", None):
getMargeStats = getattr(res, "getMargeStats", None)
if getMargeStats is not None:
results[i] = getMargeStats()
self.lines = []
if formatter is None:
Expand Down

0 comments on commit 3d1fb37

Please sign in to comment.