idies / pyJHTDB

Python wrapper for the Johns Hopkins turbulence database library
Apache License 2.0
100 stars 47 forks source link

config file #4

Closed chichilalescu closed 5 years ago

chichilalescu commented 10 years ago

at the moment the configuration file is "JHTDB_user_token.txt", and it's placed in the user's home folder, and it contains the authorization token. this is most likely not good practice, but I'm not sure what would be, especially since we want this package to be as portable as possible.

chichilalescu commented 9 years ago

the latest version of the package now generates a ~/.config/JHTDB folder, where it places an "auth_token.txt" file with the default authorization token. The README.rst file tells the user that they're supposed to put their token in that file. I'm also using this folder to place the interpolator data (for local interpolation). I'm not sure how many people will use that particular functionality, but this is also mentioned in the README.rst.

If anyone has a better suggestion, let me know.