You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello! i use picaso to get a brown dwarf spectrum, and get error called "syntax error", and i don't know how to fix:
Traceback (most recent call last):
File "/bdtest.py", line 73, in
df = bd.spectrum(opa, full_output=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/justdoit.py", line 3731, in spectrum
return picaso(self, opacityclass,dimension=dimension,calculation=calculation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/justdoit.py", line 228, in picaso
get_opacities(atm,exclude_mol=exclude_mol)
File "/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/optics.py", line 2604, in get_opacities_nearest
data = self._get_query_molecular(ind_pt,molecules,cur)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/optics.py", line 2492, in _get_query_molecular
cur.execute("""SELECT molecule,ptid,opacity
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: near "(": syntax error
The text was updated successfully, but these errors were encountered:
this error fixed by gpt, it changed the optics.py _get_query_continuum and _get_query_molecular functions, just syntax error.
if len(tcia) == 1:
query_temp = "AND temperature = ?"
else:
query_temp = "AND temperature IN ({})".format(','.join(['?'] * len(tcia)))
hello! i use picaso to get a brown dwarf spectrum, and get error called "syntax error", and i don't know how to fix:
Traceback (most recent call last):
File "/bdtest.py", line 73, in
df = bd.spectrum(opa, full_output=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/justdoit.py", line 3731, in spectrum/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/justdoit.py", line 228, in picasoreturn picaso(self, opacityclass,dimension=dimension,calculation=calculation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
get_opacities(atm,exclude_mol=exclude_mol)
File "
/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/optics.py", line 2604, in get_opacities_nearest/miniconda3/envs/xesmf_env/lib/python3.12/site-packages/picaso-3.3-py3.12.egg/picaso/optics.py", line 2492, in _get_query_moleculardata = self._get_query_molecular(ind_pt,molecules,cur)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
cur.execute("""SELECT molecule,ptid,opacity
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: near "(": syntax error
The text was updated successfully, but these errors were encountered: