Skip to content

Commit 2165917

Browse files
committed
Merge remote-tracking branch 'origin/main' into pyiron_workflow
# Conflicts: # src/python_workflow_definition/pyiron_workflow.py
2 parents 9636be6 + 04c0adb commit 2165917

File tree

21 files changed

+71
-16
lines changed

21 files changed

+71
-16
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: psf/black@stable
1414
with:
1515
options: "--check --diff"
16-
src: ./python_workflow_definition/src/python_workflow_definition
16+
src: ./src/python_workflow_definition
1717
- uses: psf/black@stable
1818
with:
1919
options: "--check --diff"
@@ -35,7 +35,7 @@ jobs:
3535
- name: Pip check
3636
shell: bash -l {0}
3737
run: |
38-
pip install --no-deps --no-build-isolation -e python_workflow_definition
38+
pip install --no-deps --no-build-isolation -e .
3939
pip check
4040
4141
nfdi4ing:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Installation and setup
5454
shell: bash -l {0}
5555
run: |
56-
pip install --no-deps --no-build-isolation -e python_workflow_definition
56+
pip install --no-deps --no-build-isolation -e .
5757
conda install -c conda-forge jupyter papermill
5858
verdi presto --profile-name pwd
5959
sudo apt-get install -y $(cat binder/apt.txt)
@@ -93,7 +93,7 @@ jobs:
9393
shell: bash -l {0}
9494
run: |
9595
pip install --no-deps --no-build-isolation -e example_workflows/quantum_espresso/qe_xml_parser
96-
pip install --no-deps --no-build-isolation -e python_workflow_definition
96+
pip install --no-deps --no-build-isolation -e .
9797
conda install -c conda-forge jupyter papermill
9898
verdi presto --profile-name pwd
9999
- name: Tests
@@ -124,7 +124,7 @@ jobs:
124124
- name: Installation and setup
125125
shell: bash -l {0}
126126
run: |
127-
pip install --no-deps --no-build-isolation -e python_workflow_definition
127+
pip install --no-deps --no-build-isolation -e .
128128
conda install -c conda-forge jupyter papermill
129129
verdi presto --profile-name pwd
130130
- name: Tests

.github/workflows/pypi.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ jobs:
2626
environment-file: binder/environment.yml
2727
- name: Build
2828
shell: bash -l {0}
29-
run: |
30-
cd python_workflow_definition
31-
hatch build -t sdist -t wheel
29+
run: hatch build -t sdist -t wheel
3230
- name: Publish distribution 📦 to PyPI
3331
uses: pypa/gh-action-pypi-publish@release/v1
3432
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ cython_debug/
178178
input_tmp.in
179179
pyiron.log
180180
pyiron_draw.png
181-
python_workflow_definition/src/python_workflow_definition/__pycache__/
181+
src/python_workflow_definition/__pycache__/
182182
test/
183183
mini/
184184
evcurve.png

CITATION.cff

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
cff-version: "1.2.0"
2+
authors:
3+
- family-names: Janssen
4+
given-names: Jan
5+
orcid: "https://orcid.org/0000-0001-9948-7119"
6+
- family-names: George
7+
given-names: Janine
8+
orcid: "https://orcid.org/0000-0001-8907-0336"
9+
- family-names: Geiger
10+
given-names: Julian
11+
orcid: "https://orcid.org/0000-0003-0023-1960"
12+
- family-names: Bercx
13+
given-names: Marnik
14+
orcid: "https://orcid.org/0000-0001-8470-1012"
15+
- family-names: Wang
16+
given-names: Xing
17+
- family-names: Ertural
18+
given-names: Christina
19+
orcid: "https://orcid.org/0000-0002-7696-5824"
20+
- family-names: Schaarschmidt
21+
given-names: Joerg
22+
orcid: "https://orcid.org/0000-0002-4389-2366"
23+
- family-names: Ganose
24+
given-names: Alex
25+
orcid: "https://orcid.org/0000-0002-4486-3321"
26+
- family-names: Pizzi
27+
given-names: Giovanni
28+
orcid: "https://orcid.org/0000-0002-3583-4377"
29+
- family-names: Hickel
30+
given-names: Tilmann
31+
orcid: "https://orcid.org/0000-0003-0698-4891"
32+
- family-names: Neugebauer
33+
given-names: Joerg
34+
orcid: "https://orcid.org/0000-0002-7903-2472"
35+
title: "A Python workflow definition for computational materials design"
36+
version: 0.1.1
37+
doi: 10.5281/zenodo.15516180
38+
date-released: 2025-05-26
39+
license: bsd-3-clause
40+
url: "https://github.com/pythonworkflow/python-workflow-definition"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Python Workflow Definition
22
[![Pipeline](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml/badge.svg)](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml)
33
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pythonworkflow/python-workflow-definition/HEAD)
4+
[![arXiv](https://img.shields.io/badge/arXiv-2505.20366-b31b1b.svg)](https://arxiv.org/abs/2505.20366)
5+
[![DOI](https://zenodo.org/badge/945869529.svg)](https://doi.org/10.5281/zenodo.15516179)
46

57
## Definition
68
In the Python Workflow Definition (PWD) each node represents a Python function, with the edges defining the connection

binder/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ channels:
22
- conda-forge
33
dependencies:
44
- python =3.12
5+
- click =8.1.8
56
- pydantic =2.11.4
67
- hatch =1.14.1
78
- hatchling =1.27.0
89
- httpcore =1.0.7
9-
- jobflow =0.1.19
10+
- jobflow =0.2.0
1011
- pyiron_base =0.12.0
1112
- pyiron_workflow =0.13.0
1213
- pygraphviz =1.14

example_workflows/quantum_espresso/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ dependencies:
55
- matplotlib=3.10.1
66
- xmlschema=3.4.3
77
- optimade=1.2.3
8-
- qe=7.2
9-
- qe-tools=2.0.0
8+
- qe=7.4
9+
- qe-tools=2.0.0

example_workflows/quantum_espresso/qe_xml_parser/src/qe_xml_parser/schemas/qes_230310.xsd

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ datecode 220603
7373
<element type="qes:ekin_functionalType" name="ekin_functional" minOccurs="0" />
7474
<element type="qes:matrixType" name="external_atomic_forces" minOccurs="0" />
7575
<element type="qes:integerMatrixType" name="free_positions" minOccurs="0" />
76+
<element type="qes:twochemType" name="twoch_" minOccurs="0" />
7677
<element type="qes:matrixType" name="starting_atomic_velocities" minOccurs="0" />
7778
<element type="qes:electric_fieldType" name="electric_field" minOccurs="0" />
7879
<element type="qes:atomic_constraintsType" name="atomic_constraints" minOccurs="0" />
@@ -235,6 +236,7 @@ datecode 220603
235236
<element type="qes:cellType" name="cell"/>
236237
</sequence>
237238
<attribute type="positiveInteger" name="nat" />
239+
<attribute type="positiveInteger" name="num_of_atomic_wfc" />
238240
<attribute type="double" name="alat" use="optional"/>
239241
<attribute type="positiveInteger" name="bravais_index" use="optional"/>
240242
<attribute type="string" name="alternative_axes" use="optional" />
@@ -908,6 +910,15 @@ datecode 220603
908910
</simpleContent>
909911
</complexType>
910912

913+
<complexType name="twochemType">
914+
<sequence>
915+
<element type="boolean" name="twochem" minOccurs="0"/>
916+
<element type="integer" name="nbnd_cond" minOccurs="0"/>
917+
<element type="double" name="degauss_cond" minOccurs="0"/>
918+
<element type="double" name="nelec_cond" minOccurs="0"/>
919+
</sequence>
920+
</complexType>
921+
911922
<!-- OUTPUT TYPE -->
912923

913924
<complexType name="outputElectricFieldType">
@@ -997,6 +1008,7 @@ datecode 220603
9971008
<sequence>
9981009
<element type="qes:scf_convType" name="scf_conv"/>
9991010
<element type="qes:opt_convType" name="opt_conv" minOccurs="0"/>
1011+
<element type="boolean" name="wf_collected" minOccurs="0"/>
10001012
</sequence>
10011013
</complexType>
10021014
<complexType name="scf_convType">
@@ -1024,6 +1036,7 @@ datecode 220603
10241036
<complexType name="symmetriesType">
10251037
<sequence>
10261038
<element type="unsignedByte" name="nsym"/>
1039+
<element type="unsignedByte" name="colin_mag"/>
10271040
<element type="unsignedByte" name="nrot"/>
10281041
<element type="unsignedByte" name="space_group"/>
10291042
<element type="qes:symmetryType" name="symmetry" maxOccurs="48" minOccurs="1"/>
@@ -1101,8 +1114,9 @@ datecode 220603
11011114
<element type="nonNegativeInteger" name="nbnd_up" minOccurs="0" />
11021115
<element type="nonNegativeInteger" name="nbnd_dw" minOccurs="0" />
11031116
<element type="double" name="nelec"/>
1117+
<element type="double" name="fermi_energy"/>
11041118
<element type="integer" name = "num_of_atomic_wfc" minOccurs = "0"/>
1105-
<element type="boolean" name = "wf_collected" />
1119+
<element type="boolean" name = "wf_collected" minOccurs = "0"/>
11061120
<element type="double" name="fermi_energy" minOccurs="0" />
11071121
<element type="double" name="highestOccupiedLevel" minOccurs ="0"/>
11081122
<element type="double" name="lowestUnoccupiedLevel" minOccurs="0"/>
@@ -1367,4 +1381,4 @@ datecode 220603
13671381
<element type="double" name="left_buffer_v" minOccurs="0"/>
13681382
</sequence>
13691383
</complexType>
1370-
</schema>
1384+
</schema>

python_workflow_definition/pyproject.toml renamed to pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ authors = [
1414
{ name = "Marnik Bercx", email = "marnik.bercx@psi.ch" },
1515
{ name = "Christina Ertural", email = "christina.ertural@bam.de" },
1616
]
17-
license = { file = "../LICENSE" }
17+
license = { file = "LICENSE" }
1818
dependencies = [
1919
"numpy>=1.21,<2",
2020
"pydantic>=2.7.0,<=2.11.4",
@@ -25,7 +25,7 @@ aiida = [
2525
"aiida-workgraph>=0.5.1,<=0.5.2",
2626
]
2727
jobflow = [
28-
"jobflow>=0.1.18,<=0.1.19",
28+
"jobflow>=0.1.18,<=0.2.0",
2929
]
3030
pyiron = [
3131
"pyiron_base>=0.11.10,<=0.12.0",

0 commit comments

Comments
 (0)