[AstroPy] RecursionError on coordinates transformations

Sirio Negri ziriuz84 at gmail.com
Wed May 24 00:51:07 EDT 2023


Hi all!

I have this function that simply takes a json, makes some transformation 
with Astropy and puts the result in a list of dictionaries.
https://pastebin.com/qAM6GSaQ 
<https://pastebin.com/qAM6GSaQ?fbclid=IwAR1OdYE10E6NgJ8CZQzYwfXLHOzSwunzujJtFZMS9b6ooKvNGPlV2QRUuC0>
I derived the code from another project of mine where print a QTable, 
but here I need an list of dictionaries to provide a json via FastAPI.
When I make the request it returns "Internal Server Error" with a 
"RecursionError: maximum recursion depth exceeded in comparison" in 
uvicorn. Apparently it's when I try to print alt parameter from 
coord_altaz, but in the other application (simple cli software) it 
functions flawlessly.
Does anyone knows how to fix it? It's driving me crazy 😅
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/astropy/attachments/20230524/f3b8575d/attachment.html>


More information about the AstroPy mailing list