MickaelRigault / ztfquery

Access ZTF data from Python
Apache License 2.0
37 stars 18 forks source link

Importing 'fields' from ztfquery produces error #35

Closed casonshep closed 2 years ago

casonshep commented 2 years ago

Hi there, I am currently working on an algorithm for Dr. Matthew Graham utilizing ztfquery. Since the August 22 updates the the Fields.py file, I am unable to properly import fields. I get this error:


File "/usr/local/lib/python3.7/dist-packages/ztfquery/fields.py", line 197 
if (inshape:=np.shape(radec))[-1] != 2:
           ^
SyntaxError: invalid syntax
simeonreusch commented 2 years ago

The walrus operator requires Python >= 3.8. So update your Python and you should be fine :-)