aiida-core icon indicating copy to clipboard operation
aiida-core copied to clipboard

❓ Is there any reason why we need to load a profile to instantiate a class?

Open mbercx opened this issue 2 months ago • 3 comments

The following:

from aiida.orm import Int

Int(1)

will (apparently) fail with:

ConfigurationError: Could not determine the current profile. Consider loading a profile using `aiida.load_profile()`.

is there a good reason for this? I understand once the user tries to store the node, this needs a database and hence a profile, but why when we use a class constructor?

mbercx avatar Oct 06 '25 07:10 mbercx