SciQLop / speasy

Space Physics made EASY! A simple Python package to deal with main Space Physics WebServices (CDA,SSC,AMDA,..)
Other
24 stars 7 forks source link

amda.list_user_parameters() is not up to date #39

Closed menouarazib closed 2 years ago

menouarazib commented 2 years ago

Description

I'm using amda.list_user_parameters() to get the list of my parameters, it works very well. The problem is that when I create a new parameter directly with "http://amda.cdpp.eu/" and then if I run the same method the returned list of parameters is not up to date.

What I Did

config.amda_username.set('...')
config.amda_password.set('....')
print(amda.list_user_parameters())
jeandet commented 2 years ago

This is likely due to the cache see here: https://speasy.readthedocs.io/en/latest/user/amda/amda.html#amda-cache-retention Maybe you can reduce it to less than 5 minutes so you won't wait much if you call many times list_user_parameters but also see faster modifications.

jeandet commented 2 years ago

@menouarazib is that OK, can I close the issue or this is a different bug?

menouarazib commented 2 years ago

@jeandet thanks for your reply, yes you can close the issue.