-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Labels
good first issueIssues that should be relatively easy to fix also for beginning contributorsIssues that should be relatively easy to fix also for beginning contributors
Description
Just ran verdi code show, and it seems like the output is now different in v2.7.0, showing more, and duplicated info:
❯ verdi code show 2
/home/geiger_j/.aiida_venvs/use-cases/lib/python3.10/site-packages/aiida/cmdline/commands/cmd_code.py:229: AiidaDeprecationWarning: `InstalledCode.repository_metadata` is deprecated, use `InstalledCode.base.repository.metadata` instead. (this will be removed in v3)
table.append([key.capitalize().replace('_', ' '), getattr(code, key)])
/home/geiger_j/.aiida_venvs/use-cases/lib/python3.10/site-packages/aiida/cmdline/commands/cmd_code.py:229: AiidaDeprecationWarning: `InstalledCode.attributes` is deprecated, use `InstalledCode.base.attributes.all` instead. (this will be removed in v3)
table.append([key.capitalize().replace('_', ' '), getattr(code, key)])
/home/geiger_j/.aiida_venvs/use-cases/lib/python3.10/site-packages/aiida/cmdline/commands/cmd_code.py:229: AiidaDeprecationWarning: `InstalledCode.extras` is deprecated, use `InstalledCode.base.extras.all` instead. (this will be removed in v3)
table.append([key.capitalize().replace('_', ' '), getattr(code, key)])
----------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PK 2
UUID ad20bb6d-66c2-4ec7-a2c1-cce26bb2e97f
Type core.code.installed
Pk 2
Uuid ad20bb6d-66c2-4ec7-a2c1-cce26bb2e97f
Node type data.core.code.installed.InstalledCode.
Process type
Repository metadata {}
Ctime 2025-07-01 11:32:50.689347+00:00
Mtime 2025-07-01 11:32:50.733191+00:00
Label pw
Description abc
Attributes {'input_plugin': 'quantumespresso.pw', 'append_text': '', 'prepend_text': 'uenv start quantumespresso/v7.3.1:v1', 'use_double_quotes': False, 'with_mpi': None, 'wrap_cmdline_params': False, 'filepath_executable': '/user-environment/env/default/bin/pw.x'}
Extras {'hidden': False, '_aiida_hash': 'bd9d464fc7c03c708e23643ee350322d1759e4c05ef3aa5e920c3e8bb954b5b8'}
Computer eiger (eiger.cscs.ch), pk: 3
User aiida@localhost
Source
Default calc job plugin quantumespresso.pw
Use double quotes False
With mpi
Prepend text uenv start quantumespresso/v7.3.1:v1
Append text
Filepath executable /user-environment/env/default/bin/pw.x
----------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------as compared to v2.6.3:
❯ verdi code show 2
----------------------- --------------------------------------
PK 2
UUID ad20bb6d-66c2-4ec7-a2c1-cce26bb2e97f
Type core.code.installed
Label pw
Description abc
Default calc job plugin quantumespresso.pw
Use double quotes False
With mpi
Prepend text uenv start quantumespresso/v7.3.1:v1
Append text
Computer eiger (eiger.cscs.ch), pk: 3
Filepath executable /user-environment/env/default/bin/pw.x
----------------------- --------------------------------------I assume this is due to changes related to the pydantic PR and the iteration over the model_fields in the show command in cmd_code.py:
| for key in code.Model.model_fields.keys(): |
Ping @agoscinski, @edan-bainglass
Metadata
Metadata
Assignees
Labels
good first issueIssues that should be relatively easy to fix also for beginning contributorsIssues that should be relatively easy to fix also for beginning contributors
Type
Projects
Status
In progress