Closed elinscott closed 3 weeks ago
Hello @elinscott! Thanks for updating this PR.
src/koopmans/calculators/_calculator.py
:Line 276:121: E501 line too long (162 > 120 characters)
src/koopmans/processes/_process.py
:Line 49:121: E501 line too long (159 > 120 characters)
src/koopmans/processes/ui/_process.py
: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)
src/koopmans/utils/_warnings.py
:Line 29:75: E226 missing whitespace around arithmetic operator
src/koopmans/utils/_xml.py
:Line 71:67: E226 missing whitespace around arithmetic operator
src/koopmans/workflows/_convergence.py
: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)
src/koopmans/workflows/_convergence_ml.py
: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
src/koopmans/workflows/_koopmans_dfpt.py
:Line 194:121: E501 line too long (123 > 120 characters) Line 196:121: E501 line too long (122 > 120 characters)
src/koopmans/workflows/_koopmans_dscf.py
: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)
src/koopmans/workflows/_trajectory.py
:src/koopmans/workflows/_wannierize.py
: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)
src/koopmans/workflows/_workflow.py
: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)
tests/io/test_io_json.py
:Line 27:22: E226 missing whitespace around arithmetic operator Line 40:22: E226 missing whitespace around arithmetic operator
tutorials/tutorial_4/plot.py
:Line 43:28: W605 invalid escape sequence '\A'
tutorials/tutorial_5/perturb_positions.py
:Line 16:39: E226 missing whitespace around arithmetic operator
[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: @.***>
Summary
This refactor of the code contains several changes designed to make
koopmans
more robust and amenable to integration withAiiDA
. Namely...tmp
directoriesFilePointer
class) so that it will be possible to "move" files on a remote serverProcess
class to make python operations on files etc. more standardized (and able to be executed remotely)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
koopmans
markdown-compliant, making the output files easier to read for humans.kwf
files have been replaced by.pkl
files (removing the responsibility of writingWorkflows
to file from custom code and using the widely-useddill
package instead)