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

interface for loading dummy profile #3390

Closed
ltalirz opened this issue Oct 5, 2019 · 0 comments · Fixed by #3669
Closed

interface for loading dummy profile #3390

ltalirz opened this issue Oct 5, 2019 · 0 comments · Fixed by #3669
Labels
type/feature request status undecided

Comments

@ltalirz
Copy link
Member

ltalirz commented Oct 5, 2019

So far, loading a dummy profile (no connection to a DB) has been necessary only for building the documentation on "readthedocs". The code necessary to do this therefore currently is a bit hackish and contains variables specific for this use case, see

/~https://github.com/aiidateam/aiida-core/pull/3374/files#diff-1ec61223727a10e5e4c74c68336809fcR261-R274

Loading a dummy profile could be useful not just on read the docs but in other contexts as well (e.g. for a quick test that doesn't need the DB... perhaps more).
But even if it is just used on RTD for the moment, it would be nice to provide an easier way for developers to load a dummy profile in their sphinx conf.py:

I propose to either

  1. add a function load_dummy_profile() or
  2. add an optional argument dummy_profile (or similar) toload_profile

In the first case, the function could live not at the top level but only under aiida.manage.configuration to allow for some time to converge behavior and user interface.

mentioning @sphuber @giovannipizzi for comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature request status undecided
Projects
None yet
1 participant