I've been trying to retrieve data from the API software but cannot maintain a network connection.
When I run some basic code I get:
Traceback (most recent call last):
File "tng300.py", line 33, in
Simu = get(R['simulations'][names.index(simu)]['url'])
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.tng-project.org', port=443): Max retries exceeded with url: /api/TNG300-1/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f549248d750>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Is the server having problems, or is this me?
I don't see any issue, are you still having trouble? What URL/link specifically is not working?
It seems to be working now. But earlier I couldn't access the base URL for TNG100-1 or TNG300-1.
Yesterday this was on and off. Just think you should be aware.
This is now happening again
Just a note, but if you are processing large numbers of subhalos (e.g. more than 100s), you are likely better off simply downloading the group catalog as a whole (for that snapshot).
Similarly, if you are getting particle data, of a few fields, for a large number of subhalos, you may consider downloading those fields for the entire snapshot.
Once done, you'll have these locally and won't need to access the API for each object, which should be much faster and more stable.
Thank Dylan, as it happens I was using multiple codes at once. Will be careful.