Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User defaults and presets #9

Open
pfebrer opened this issue Apr 15, 2020 · 2 comments
Open

User defaults and presets #9

pfebrer opened this issue Apr 15, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@pfebrer
Copy link
Owner

pfebrer commented Apr 15, 2020

Give the possibility to users to add their global defaults (probably stored in a file inside sisl.viz, although then it would have to persist through updates) and local defaults (stored in a file in the specific plot).

I think defaults would be mainly stored in a dict where the first level keys are the plot classes.

It also would be nice to let the user have presets. In this way, users would be able to reference them in the splot command (#8), for example.

@pfebrer pfebrer added the enhancement New feature or request label Apr 15, 2020
@pfebrer
Copy link
Owner Author

pfebrer commented May 6, 2020

The presets part is done. Users can define their presets in the path defined at sisl.viz._user_customs.PRESETS_FILE ("~/.sisl/presets.py" by default). This file should define a variable called presets containing a dict. Each key of the dict defines a preset, so users can have as many as they want. They are automatically accesible everywhere (python, CLI, GUI).

@pfebrer
Copy link
Owner Author

pfebrer commented May 6, 2020

So

  • presets
  • defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant