Closed sammypanda closed 1 year ago
Yeah, the walrus operator was added in Python 3.8. While the reason for you using this old version of python is not my business, the only solution is a workaround in this case, as this is not a bug in ggt.
Try changing:
if fit and (maxval := max(val)) > 1: # the walrus operator says hello
val = list(map(lambda x: x / maxval, val))
to
if fit:
maxval = max(val)
if maxval > 1:
val = list(map(lambda x: x / maxval, val))
solved, could maybe have python3 requirement added to readme
thank you, this is a life saver.. just noting here that it doesn't appear to work in python 3.7.5
(works for me in python 2.7.18)