Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ notebooks:
- name: api_examples
packages_common:
- mat3ra-standata
- mat3ra-ide
- mat3ra-api-client
- requests
- mat3ra-ade
Expand Down
55 changes: 38 additions & 17 deletions other/materials_designer/workflows/band_gap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@
"id": "34",
Copy link
Member

@timurbazhirov timurbazhirov Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #8.        ppn=2

Let's keep default


Reply via ReviewNB

"metadata": {},
"source": [
"## 6. Create the compute configuration"
"## 6. Create the compute configuration\n",
"### 6.1. Get list of clusters"
]
},
{
Expand All @@ -475,18 +476,38 @@
"metadata": {},
"outputs": [],
"source": [
"from utils.api import get_cluster_name\n",
"\n",
"CLUSTER_NAME = get_cluster_name()\n",
"clusters = client.clusters.list()\n",
"clusters"
]
},
{
"cell_type": "markdown",
"id": "36",
"metadata": {},
"source": [
"### 6.2. Create compute configuration for the job"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "37",
"metadata": {},
"outputs": [],
"source": [
"from mat3ra.ide.compute import Compute, QueueName\n",
"\n",
"compute = client.jobs.build_compute_config(\n",
" cluster=CLUSTER_NAME\n",
"cluster = clusters[0]\n",
"compute = Compute(\n",
" cluster=cluster,\n",
" queue=QueueName.D,\n",
" ppn=1\n",
")"
]
},
{
"cell_type": "markdown",
"id": "36",
"id": "38",
"metadata": {},
"source": [
"## 7. Create the job with material and workflow configuration\n",
Expand All @@ -496,7 +517,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "37",
"id": "39",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -506,7 +527,7 @@
},
{
"cell_type": "markdown",
"id": "38",
"id": "40",
"metadata": {},
"source": [
"### 7.2. Create job"
Expand All @@ -515,7 +536,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "39",
"id": "41",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -533,7 +554,7 @@
" project_id=project_id,\n",
" prefix=JOB_NAME,\n",
" owner_id=ACCOUNT_ID,\n",
" compute=compute,\n",
" compute=compute.to_dict(),\n",
")\n",
"\n",
"job_dict = job_response[0]\n",
Expand All @@ -545,7 +566,7 @@
},
{
"cell_type": "markdown",
"id": "40",
"id": "42",
"metadata": {},
"source": [
"## 8. Submit the job and monitor the status"
Expand All @@ -554,7 +575,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "41",
"id": "43",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -564,7 +585,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "42",
"id": "44",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -575,7 +596,7 @@
},
{
"cell_type": "markdown",
"id": "43",
"id": "45",
"metadata": {},
"source": [
"## 9. Retrieve results"
Expand All @@ -584,7 +605,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "44",
"id": "46",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -598,7 +619,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "45",
"id": "47",
"metadata": {},
"outputs": [],
"source": []
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ dependencies = [
# ase >=3.25.0 is required for supercell to be generated,
# otherwise on 3.21.1 we encountered negative number of atoms during supercell generation
"ase>=3.25.0",
# Use a valid PEP 508 URL for a local file dependency: file URIs must be absolute and include three slashes
"mat3ra-api-client",
"matplotlib>=3.4.1",
"pandas>=1.5.3",
"pymatgen==2024.4.13",
"mat3ra-made>=2025.8.13.post0",
"mat3ra-utils>=2024.6.11.post0",
"mat3ra-wode",
"mat3ra-prode"
"mat3ra-prode",
"mat3ra-ide",
"mat3ra-api-client",
]

[project.optional-dependencies]
Expand Down