Reorganization of some top level modules#2357
Conversation
|
The only two things not done yet, are the |
|
Coverage increased (+7.4%) to 68.676% when pulling ad86ad3ae546ed01abdce6a05ef30e8af4d2fd4d on sphuber:fix_2311_reorganization_modules into 14ecf15 on aiidateam:provenance_redesign. |
1 similar comment
|
Coverage increased (+7.4%) to 68.676% when pulling ad86ad3ae546ed01abdce6a05ef30e8af4d2fd4d on sphuber:fix_2311_reorganization_modules into 14ecf15 on aiidateam:provenance_redesign. |
4099613 to
52cbb1a
Compare
|
Wow, thanks a lot @sphuber ! |
|
Thanks a lot @sphuber !! I would suggest to either keep it there or move to to a folder that we specifically use for data extensions (I don't know if it really belongs to tools - we could still have a subfolder in some aiida. For the prettifier, it's used by the kpoints/bands exporters, but it could still be general - also in this case maybe it's ok to keep it where it is? For the rest, I let @ltalirz accept it - let me know if you also want me to give a look. Is there already a wiki page or somethings similar explaining what the folders are for? |
|
@giovannipizzi agreed on the |
05047a7 to
3123679
Compare
We now documented the intended content of the folders in the respective |
ltalirz
left a comment
There was a problem hiding this comment.
In case we need to make changes for pre-commit, let me know and I'll re-approve
There are a few top-level modules whose purpose was not fully clear and partially as well as partially overlapping, which caused the content to be quite unorganized and scattered. Here we reorganize these modules after having clearly defined their purpose: * aiida.common: for generic utility functions and data structures * aiida.manage: for code that manages an AiiDA instance * aiida.tools: for code that interfaces with third-party libraries The module `aiida.control` has been removed. Code that interacted with internal components have been moved into `cmdline` or `manage` where applicable. The `aiida.control.postgres` has been moved to the `aiida.manage.external` module which is reserved for code that have to interact with system wide components, such as the postgres database. The module `aiida.utils` has been removed. Generic functionality has been placed in `aiida.common` and more specific functionality has been placed in the appropriate sub folders.
3123679 to
8249edd
Compare
Fixes #2311
There are a few top-level modules whose purpose was not fully clear and
partially as well as partially overlapping, which caused the content to
be quite unorganized and scattered. Here we reorganize these modules
after having clearly defined their purpose:
The module
aiida.controlhas been removed. Code that interacted withinternal components have been moved into
cmdlineormanagewhereapplicable. The
aiida.control.postgreshas been moved to theaiida.manage.externalmodule which is reserved for code that have tointeract with system wide components, such as the postgres database.
The module
aiida.utilshas been removed. Generic functionality hasbeen placed in
aiida.commonand more specific functionality has beenplaced in the appropriate sub folders.