I have this function that simply takes a json, makes some transformation with Astropy and puts the result in a list of dictionaries.
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