epfl-theos / koopmans

Implementation of Koopmans-compliant functionals in Quantum ESPRESSO
https://koopmans-functionals.org
GNU General Public License v2.0
13 stars 5 forks source link

Refactor to run all calculations in separate directories #220

Closed elinscott closed 3 weeks ago

elinscott commented 6 months ago

Summary

This refactor of the code contains several changes designed to make koopmans more robust and amenable to integration with AiiDA. Namely...

These changes to treat calculations more like pure functions, and the introduction of a Process class also starts us in the direction of following CWL's design pattern more closely. In the long term, we would like to be as close as possible to CWL (perhaps even with composite workflows being able to be written in CWL).

Other changes

pep8speaks commented 6 months ago

Hello @elinscott! Thanks for updating this PR.

Line 276:121: E501 line too long (162 > 120 characters)

Line 49:121: E501 line too long (159 > 120 characters)

Line 197:121: E501 line too long (121 > 120 characters) Line 208:121: E501 line too long (123 > 120 characters) Line 468:121: E501 line too long (133 > 120 characters) Line 472:121: E501 line too long (121 > 120 characters)

Line 29:75: E226 missing whitespace around arithmetic operator

Line 71:67: E226 missing whitespace around arithmetic operator

Line 59:121: E501 line too long (138 > 120 characters) Line 66:121: E501 line too long (143 > 120 characters) Line 221:121: E501 line too long (172 > 120 characters) Line 224:121: E501 line too long (211 > 120 characters) Line 398:121: E501 line too long (126 > 120 characters) Line 415:121: E501 line too long (124 > 120 characters)

Line 149:23: E226 missing whitespace around arithmetic operator Line 149:35: E226 missing whitespace around arithmetic operator Line 149:47: E226 missing whitespace around arithmetic operator Line 238:51: E226 missing whitespace around arithmetic operator Line 257:34: E226 missing whitespace around arithmetic operator Line 274:34: E226 missing whitespace around arithmetic operator Line 305:34: E226 missing whitespace around arithmetic operator

Line 194:121: E501 line too long (123 > 120 characters) Line 196:121: E501 line too long (122 > 120 characters)

Line 26:121: E501 line too long (123 > 120 characters) Line 507:121: E501 line too long (129 > 120 characters) Line 669:105: E226 missing whitespace around arithmetic operator Line 700:121: E501 line too long (159 > 120 characters)

Line 48:9: E722 do not use bare 'except'

Line 65:47: E226 missing whitespace around arithmetic operator Line 200:121: E501 line too long (126 > 120 characters) Line 236:121: E501 line too long (128 > 120 characters) Line 300:121: E501 line too long (124 > 120 characters)

Line 833:121: E501 line too long (125 > 120 characters) Line 916:121: E501 line too long (186 > 120 characters) Line 921:121: E501 line too long (138 > 120 characters) Line 929:121: E501 line too long (150 > 120 characters)

Line 27:22: E226 missing whitespace around arithmetic operator Line 40:22: E226 missing whitespace around arithmetic operator

Line 43:28: W605 invalid escape sequence '\A'

Line 16:39: E226 missing whitespace around arithmetic operator

Comment last updated at 2024-06-27 10:28:10 UTC
nscolonna commented 3 weeks ago

[celebrate] Colonna Nicola reacted to your message:


From: Edward Linscott @.> Sent: Thursday, October 10, 2024 12:00:38 PM To: epfl-theos/koopmans @.> Cc: Colonna Nicola @.>; Review requested @.> Subject: Re: [epfl-theos/koopmans] Refactor to run all calculations in separate directories (PR #220)

Merged #220https://github.com/epfl-theos/koopmans/pull/220 into master.

— Reply to this email directly, view it on GitHubhttps://github.com/epfl-theos/koopmans/pull/220#event-14590062608, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHJDRFOQYELN7JBM522QCPTZ2ZT6NAVCNFSM6AAAAABHKOGZYWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGU4TAMBWGI3DAOA. You are receiving this because your review was requested.Message ID: @.***>