Skip to content

Commit 34eb703

Browse files
committed
Fix load_profile and remove upterm
1 parent d8bf13d commit 34eb703

File tree

3 files changed

+211
-57
lines changed

3 files changed

+211
-57
lines changed

.github/workflows/aiida.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ jobs:
2525
pip install -e python_workflow_definition
2626
conda install -c conda-forge jupyter papermill
2727
verdi presto --profile-name adis
28-
# Add Upterm for SSH access
29-
- name: Setup upterm session
30-
uses: lhotari/action-upterm@v1
31-
# This is optional - you can make it conditional:
32-
if: ${{ failure() || github.event_name == 'workflow_dispatch' }}
3328
- name: Tests
3429
shell: bash -l {0}
3530
run: |

jobflow_to_aiida_simple.ipynb

Lines changed: 83 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,43 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 10,
5+
"execution_count": 1,
66
"id": "000bbd4a-f53c-4eea-9d85-76f0aa2ca10b",
77
"metadata": {
88
"trusted": true
99
},
10-
"outputs": [],
10+
"outputs": [
11+
{
12+
"name": "stderr",
13+
"output_type": "stream",
14+
"text": [
15+
"/home/geiger_j/.aiida_venvs/adis/lib/python3.10/site-packages/paramiko/pkey.py:82: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.\n",
16+
" \"cipher\": algorithms.TripleDES,\n",
17+
"/home/geiger_j/.aiida_venvs/adis/lib/python3.10/site-packages/paramiko/transport.py:253: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.\n",
18+
" \"class\": algorithms.TripleDES,\n"
19+
]
20+
},
21+
{
22+
"data": {
23+
"text/plain": [
24+
"Profile<uuid='d106cde233334800a702a20040a6b629' name='adis'>"
25+
]
26+
},
27+
"execution_count": 1,
28+
"metadata": {},
29+
"output_type": "execute_result"
30+
}
31+
],
1132
"source": [
12-
"from jobflow import job, Flow"
33+
"from aiida import load_profile\n",
34+
"from jobflow import job, Flow\n",
35+
"\n",
36+
"load_profile()"
1337
]
1438
},
1539
{
1640
"cell_type": "code",
17-
"execution_count": 11,
41+
"execution_count": 2,
1842
"id": "b4a78447-e87c-4fb4-8d17-d9a280eb7254",
1943
"metadata": {
2044
"trusted": true
@@ -26,7 +50,7 @@
2650
},
2751
{
2852
"cell_type": "code",
29-
"execution_count": 12,
53+
"execution_count": 3,
3054
"id": "06c2bd9e-b2ac-4b88-9158-fa37331c3418",
3155
"metadata": {
3256
"trusted": true
@@ -38,7 +62,7 @@
3862
},
3963
{
4064
"cell_type": "code",
41-
"execution_count": 13,
65+
"execution_count": 4,
4266
"id": "fb6dbdaa-8cab-48b2-8307-448003eca3f5",
4367
"metadata": {
4468
"trusted": true
@@ -50,7 +74,7 @@
5074
},
5175
{
5276
"cell_type": "code",
53-
"execution_count": 14,
77+
"execution_count": 5,
5478
"id": "fb847d49-7bf9-4839-9b99-c116d1b0e9ee",
5579
"metadata": {
5680
"trusted": true
@@ -65,7 +89,7 @@
6589
},
6690
{
6791
"cell_type": "code",
68-
"execution_count": 15,
92+
"execution_count": 6,
6993
"id": "8f95244e",
7094
"metadata": {},
7195
"outputs": [],
@@ -75,7 +99,7 @@
7599
},
76100
{
77101
"cell_type": "code",
78-
"execution_count": 16,
102+
"execution_count": 7,
79103
"id": "07598344-0f75-433b-8902-bea21a42088c",
80104
"metadata": {
81105
"trusted": true
@@ -88,7 +112,7 @@
88112
},
89113
{
90114
"cell_type": "code",
91-
"execution_count": 17,
115+
"execution_count": 8,
92116
"id": "ecef1ed5-a8d3-48c3-9e01-4a40e55c1153",
93117
"metadata": {
94118
"trusted": true
@@ -100,7 +124,7 @@
100124
},
101125
{
102126
"cell_type": "code",
103-
"execution_count": 18,
127+
"execution_count": 9,
104128
"id": "2b88a30a-e26b-4802-89b7-79ca08cc0af9",
105129
"metadata": {
106130
"trusted": true
@@ -112,7 +136,7 @@
112136
},
113137
{
114138
"cell_type": "code",
115-
"execution_count": 19,
139+
"execution_count": 10,
116140
"id": "a5e5ca63-2906-47c9-bac6-adebf8643cba",
117141
"metadata": {
118142
"trusted": true
@@ -124,7 +148,7 @@
124148
},
125149
{
126150
"cell_type": "code",
127-
"execution_count": 20,
151+
"execution_count": 11,
128152
"id": "e464da97-16a1-4772-9a07-0a47f152781d",
129153
"metadata": {
130154
"trusted": true
@@ -136,7 +160,7 @@
136160
},
137161
{
138162
"cell_type": "code",
139-
"execution_count": 21,
163+
"execution_count": 12,
140164
"id": "bca646b2-0a9a-4271-966a-e5903a8c9031",
141165
"metadata": {
142166
"trusted": true
@@ -166,7 +190,7 @@
166190
},
167191
{
168192
"cell_type": "code",
169-
"execution_count": 23,
193+
"execution_count": 13,
170194
"id": "8f2a621d-b533-4ddd-8bcd-c22db2f922ec",
171195
"metadata": {
172196
"trusted": true
@@ -175,15 +199,15 @@
175199
{
176200
"data": {
177201
"application/vnd.jupyter.widget-view+json": {
178-
"model_id": "6d262da7512d4dd5b25be162da9f2e41",
202+
"model_id": "40090008ae2942cebbc0a5d428c25f97",
179203
"version_major": 2,
180204
"version_minor": 1
181205
},
182206
"text/plain": [
183207
"NodeGraphWidget(settings={'minimap': True}, style={'width': '90%', 'height': '600px'}, value={'name': 'WorkGra…"
184208
]
185209
},
186-
"execution_count": 23,
210+
"execution_count": 13,
187211
"metadata": {},
188212
"output_type": "execute_result"
189213
}
@@ -195,7 +219,7 @@
195219
},
196220
{
197221
"cell_type": "code",
198-
"execution_count": 25,
222+
"execution_count": 14,
199223
"id": "cf80267d-c2b0-4236-bf1d-a57596985fc1",
200224
"metadata": {
201225
"trusted": true
@@ -205,99 +229,107 @@
205229
"name": "stderr",
206230
"output_type": "stream",
207231
"text": [
208-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
209-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: 2,3\n",
210-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: 2, type: Normal\n",
211-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_normal_task_state]: Task: 2 finished.\n",
212-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
213-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: 3\n",
214-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: 3, type: Normal\n",
215-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_normal_task_state]: Task: 3 finished.\n",
216-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n"
232+
"03/21/2025 12:32:04 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
233+
"03/21/2025 12:32:04 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: tasks ready to run: pickle_node3,pickle_node4\n",
234+
"03/21/2025 12:32:04 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|run_tasks]: Run task: pickle_node3, type: PYTHONJOB\n"
217235
]
218236
},
219237
{
220238
"name": "stdout",
221239
"output_type": "stream",
222240
"text": [
223241
"------------------------------------------------------------\n",
224-
"kwargs: {'value': 1}\n",
225-
"------------------------------------------------------------\n",
226-
"kwargs: {'value': 2}\n"
242+
"kwargs: {'value': 1}\n"
227243
]
228244
},
229245
{
230246
"name": "stderr",
231247
"output_type": "stream",
232248
"text": [
233-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y\n",
234-
"03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: add_x_and_y, type: PYTHONJOB\n"
249+
"03/21/2025 12:32:04 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|run_tasks]: Run task: pickle_node4, type: PYTHONJOB\n"
235250
]
236251
},
237252
{
238253
"name": "stdout",
239254
"output_type": "stream",
240255
"text": [
241256
"------------------------------------------------------------\n",
242-
"kwargs: {'register_pickle_by_value': True, 'x': 1, 'y': 2}\n"
257+
"kwargs: {'value': 2}\n"
243258
]
244259
},
245260
{
246261
"name": "stderr",
247262
"output_type": "stream",
248263
"text": [
249-
"03/17/2025 10:49:40 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 8560\n",
250-
"03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_task_state]: Task: add_x_and_y finished.\n",
251-
"03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
252-
"03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y_and_z\n",
253-
"03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: add_x_and_y_and_z, type: PYTHONJOB\n"
264+
"03/21/2025 12:32:05 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 12745, 12753\n",
265+
"03/21/2025 12:32:08 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|update_task_state]: Task: pickle_node3 finished.\n",
266+
"03/21/2025 12:32:09 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|update_task_state]: Task: pickle_node4 finished.\n",
267+
"03/21/2025 12:32:09 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
268+
"03/21/2025 12:32:09 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y1\n",
269+
"03/21/2025 12:32:09 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|run_tasks]: Run task: add_x_and_y1, type: PYTHONJOB\n"
254270
]
255271
},
256272
{
257273
"name": "stdout",
258274
"output_type": "stream",
259275
"text": [
260276
"------------------------------------------------------------\n",
261-
"kwargs: {'register_pickle_by_value': True, 'x': <Int: uuid: 641fb31a-ade5-4268-8792-60467c4fb196 (pk: 8564) value: 1>, 'y': <Int: uuid: f9fb98d9-4800-445e-a386-73b3bd64d49f (pk: 8565) value: 2>, 'z': <Int: uuid: 11c56b8d-25d3-4c30-9afa-1f0bbfca15a3 (pk: 8566) value: 3>}\n"
277+
"kwargs: {'register_pickle_by_value': True, 'x': <Int: uuid: cf353d09-ae92-439a-8c97-df9bf2eef4f0 (pk: 12760) value: 1>, 'y': <Int: uuid: cc43a896-0154-4ef1-bf8f-84a8a3f7c823 (pk: 12761) value: 2>}\n"
262278
]
263279
},
264280
{
265281
"name": "stderr",
266282
"output_type": "stream",
267283
"text": [
268-
"03/17/2025 10:49:43 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 8573\n",
269-
"03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_task_state]: Task: add_x_and_y_and_z finished.\n",
270-
"03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
271-
"03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: \n",
272-
"03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|finalize]: Finalize workgraph.\n"
284+
"03/21/2025 12:32:10 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 12768\n",
285+
"03/21/2025 12:32:12 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|update_task_state]: Task: add_x_and_y1 finished.\n",
286+
"03/21/2025 12:32:13 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
287+
"03/21/2025 12:32:13 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y_and_z2\n",
288+
"03/21/2025 12:32:13 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|run_tasks]: Run task: add_x_and_y_and_z2, type: PYTHONJOB\n"
273289
]
274290
},
275291
{
276292
"name": "stdout",
277293
"output_type": "stream",
278294
"text": [
279-
"group_outputs []\n",
280-
"group_outputs: {}\n"
295+
"------------------------------------------------------------\n",
296+
"kwargs: {'register_pickle_by_value': True, 'x': <Int: uuid: 4b83d6e4-3182-4c73-afa6-0e4be3f4664d (pk: 12772) value: 1>, 'y': <Int: uuid: 3f731a30-ff61-4570-a1b5-f5eae65353ce (pk: 12773) value: 2>, 'z': <Int: uuid: 7943fabc-e035-4079-90c6-7e0738b43817 (pk: 12774) value: 3>}\n"
297+
]
298+
},
299+
{
300+
"name": "stderr",
301+
"output_type": "stream",
302+
"text": [
303+
"03/21/2025 12:32:14 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 12781\n",
304+
"03/21/2025 12:32:16 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|update_task_state]: Task: add_x_and_y_and_z2 finished.\n",
305+
"03/21/2025 12:32:16 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n",
306+
"03/21/2025 12:32:17 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|continue_workgraph]: tasks ready to run: \n",
307+
"03/21/2025 12:32:17 PM <3689673> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [12737|WorkGraphEngine|finalize]: Finalize workgraph.\n"
281308
]
282309
},
283310
{
284311
"data": {
285312
"text/plain": [
286-
"{'execution_count': <Int: uuid: 30d6c319-3250-43a3-a4dd-72de32fa41a6 (pk: 8578) value: 1>}"
313+
"{'execution_count': <Int: uuid: 3d2a822e-15e3-4a1f-aa3d-1fbc6020d7ae (pk: 12786) value: 1>}"
287314
]
288315
},
289-
"execution_count": 25,
316+
"execution_count": 14,
290317
"metadata": {},
291318
"output_type": "execute_result"
292319
}
293320
],
294321
"source": [
295-
"from aiida import load_profile\n",
296-
"\n",
297-
"load_profile()\n",
298322
"\n",
299323
"wg.run()"
300324
]
325+
},
326+
{
327+
"cell_type": "code",
328+
"execution_count": null,
329+
"id": "10c2a6c3",
330+
"metadata": {},
331+
"outputs": [],
332+
"source": []
301333
}
302334
],
303335
"metadata": {

universal_qe_to_jobflow.ipynb

Lines changed: 128 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)