siesta-project / aiida_siesta_plugin

Source code for the AiiDA-Siesta package (plugin and workflows). See wiki
Other
6 stars 11 forks source link

Refactored calculation.siesta (yapfify) #9

Closed vdikan closed 6 years ago

vdikan commented 6 years ago

Cosmetic update while I try to understand how things work (specificallly bands). In calculations.siesta we had a lot of spaces mixed with tabs etc.

I wonder what is the purpose of lines 405-409, especially: the_offset = [0 if i == 0. else 1 for i in offset]

Why change offset from [0.5, 0.5, 0.5] to [1 1 1] ?

albgar commented 6 years ago

Hi Vladimir,

Indeed, the offset change is a bug! Maybe it is a fossil from the QE plugin.

Thanks for finding it, and for the refactoring.

Alberto

On 27 Sep 2017, at 17:34, Vladimir Dikan notifications@github.com wrote:

Cosmetic update while I try to understand how things work (specificallly bands). In calculations.siesta we had a lot of spaces mixed with tabs etc.

I wonder what is the purpose of lines 405-409, especially: the_offset = [0 if i == 0. else 1 for i in offset]

Why change offset from [0.5, 0.5, 0.5] to [1 1 1] ?

You can view, comment on, or merge this pull request online at:

https://github.com/albgar/aiida_siesta_plugin/pull/9

Commit Summary

• Refactored calculation.siesta (yapfify) File Changes

• M aiida_siesta/calculations/siesta.py (546) Patch Links:

https://github.com/albgar/aiida_siesta_plugin/pull/9.patchhttps://github.com/albgar/aiida_siesta_plugin/pull/9.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

vdikan commented 6 years ago

BUG: offset [1, 1, 1] produces wrong k-points mesh.


From: Alberto Garcia notifications@github.com Sent: Thursday, September 28, 2017 12:54 PM To: albgar/aiida_siesta_plugin Cc: Vladimir Dikan; Author Subject: Re: [albgar/aiida_siesta_plugin] Refactored calculation.siesta (yapfify) (#9)

Hi Vladimir,

Indeed, the offset change is a bug! Maybe it is a fossil from the QE plugin.

Thanks for finding it, and for the refactoring.

Alberto

On 27 Sep 2017, at 17:34, Vladimir Dikan notifications@github.com wrote:

Cosmetic update while I try to understand how things work (specificallly bands). In calculations.siesta we had a lot of spaces mixed with tabs etc.

I wonder what is the purpose of lines 405-409, especially: the_offset = [0 if i == 0. else 1 for i in offset]

Why change offset from [0.5, 0.5, 0.5] to [1 1 1] ?

You can view, comment on, or merge this pull request online at:

https://github.com/albgar/aiida_siesta_plugin/pull/9

Commit Summary

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/albgar/aiida_siesta_plugin/pull/9#issuecomment-332801176, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Abt1f8zGHkZgz-Q71oeVp9uxwRAxn3qKks5sm3r1gaJpZM4Pl93j.