daraghhollman / JUPT

Juno spacecraft plotting tool for Waves, MAG, JADE/JEDI, and Trajectories
MIT License
3 stars 3 forks source link

ParseException in junoEphemeris #35

Closed wlwetzel closed 10 months ago

wlwetzel commented 10 months ago

Attempting to run default_config.ini results in the error:

ValueError: 
Lon$_{III}$ ($^\circ}$)
             ^
ParseException: Expected end of text, found '$'  (at char 13), (line:1, col:14) 

Something strange to note is that this did not occur the first time I ran the default config, but has persisted even after a clean install of JUPT.

Escaping the $ symbols as \\$ seems to fix the issue.

daraghhollman commented 10 months ago

Hi, thanks for your issue.

I have tested and replicated this and it appears to be an error only new to Python 3.12

Please note that JUPT has been developed and tested using only Python 3.11 as outlined in the documentation. Using a virtual environment with Python 3.11 rather than 3.12 should fix this.

daraghhollman commented 3 months ago

Hi again,

With some further testing, it seems the issue here is that there is a misplaced '}' after '\circ' resulting in the parse exception. This will be changed in a future commit.

With this fix, I was able to run the default config successfully. However, Python 3.12 might still have other issues yet to be found.

daraghhollman commented 3 months ago

Resolved in PR #38, merged to main.