0 votes
1 view

Hi,

I was trying to run the python code

from dl import authClient as ac, queryClient as qc

token = ac.login(input("Enter user name: (+ENTER) "),getpass("Enter password: (+ENTER) "))

query = '''SELECT d.*, z.id, z.targetid, xu.id1, xu.id2, xu.distance, u.unwise_objid, u.fluxlbs_w1, u.fluxlbs_w2, u.fracflux_w1, u.fracflux_w2, u.mag_w1_vg, u.mag_w2_vg, u.nm_w1, u.nm_w2, u.qf_w1, u.qf_w2, u.rchi2_w1, u.rchi2_w2
FROM mydb://desi_star AS d
INNER JOIN desi_dr1.zpix AS z
ON z.targetid=d.targetid
INNER JOIN unwise_dr1.x1p5__object__desi_dr1__zpix AS xu
ON xu.id2=z.id
INNER JOIN unwise_dr1.object AS u
ON xu.id1=u.unwise_objid
WHERE xu.distance < 1'''
try:
qc.query(adql=query,async_=True,wait=True,poll=15,verbose=1, timeout=86400, \
out='vos://desixunwise_star.csv', fmt='csv')
except Exception as e:
print(e.message)

And got this:

Error: local variable 'job' referenced before assignment

Is there something wrong with the code?

ago by lizzie (140 points) | 1 view

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

539 questions

543 answers

514 comments

715 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories