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

CLI: Only show magnetizations in case they are present for --print-table #191

Open
mbercx opened this issue Apr 14, 2021 · 0 comments
Open
Assignees
Labels
topic/cli type/improve Improve an existing feature

Comments

@mbercx
Copy link
Member

mbercx commented Apr 14, 2021

When using the --print-table option for the plot commands, the Total magnetization column is shown even in case a non spin-polarized calculation was run, and hence no magnetizations are in the outputs:

$ aiida-common-workflows plot eos 9703 --print-table
  Volume (Å^3)    Energy (eV)  Total magnetization (μB)
--------------  -------------  --------------------------
       61.9925       -2149.73
       63.3115       -2149.76
       64.6305       -2149.78
       65.9494       -2149.79
       67.2684       -2149.79
       68.5874       -2149.78
       69.9064       -2149.76

In this case, I would remove this column since it has no content.

@mbercx mbercx added type/improve Improve an existing feature topic/cli labels Apr 14, 2021
@mbercx mbercx self-assigned this Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/cli type/improve Improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant