Open bmotevalli opened 2 weeks ago
presumably we won't ever need to edit or delete any, so it's really just going to be a dictionary .update
call to add whatever. I think just having this as a parameter in the config file that loads once on boot should be the best option
e.g.
custom_server = MYSERVER:www.website.edu
it looks like this has been implemented! thanks!
in from obspy.clients.fdsn.header import URL_MAPPINGS seems to be modified globally, hence once we add extra clients to it, it is hard to retrieve back what where the original clients. We need the distinction between extra and original clients as we only want users to be able to add / edit / delete extra clients.
I tried to get the URL_MAPPINGS on the entry points of the app, before any modification is applied to it, and write it to a .json file (orig_clients.json). However, sometimes if user clicks refresh button, the entry point might be somewhere else and that causes an issue.
Check to see if there is a better way to resolve this.