The default shortcuts used by tf.imas2tofu.MultiIDSLoader may vary frequently due to regular updates to the IMAS data dictionnnary.
Users should be able to update the shortcuts themselves without having to wait for an official to tofu.
Currently, the shortcuts are stored in a (large) hard-coded dictionnary in a dedicated module.
An elegant solution would be to mimic ipython's way of customizing preferences:
- create a script
tofu-custom that can copy a local version of that module in the user's home, in a dedicated hidden directory: ~/.tofu/
- copy in this directory the module with an explicit name
_imas2tofu_shortcuts.py
- Make sure that when tofu imports the dict from the module, it looks first into this local version and then into the general install, to make sure the user's version has precedence over the general version
The default shortcuts used by
tf.imas2tofu.MultiIDSLoadermay vary frequently due to regular updates to the IMAS data dictionnnary.Users should be able to update the shortcuts themselves without having to wait for an official to tofu.
Currently, the shortcuts are stored in a (large) hard-coded dictionnary in a dedicated module.
An elegant solution would be to mimic ipython's way of customizing preferences:
tofu-customthat can copy a local version of that module in the user's home, in a dedicated hidden directory:~/.tofu/_imas2tofu_shortcuts.py