Skip to content

feature/SOF-8000 Feature: tools package with the workflow, unit and k-grid helpers - #178

Open
VsevolodX wants to merge 5 commits into
mainfrom
feature/SOF-8000
Open

VsevolodX wants to merge 5 commits into
mainfrom
feature/SOF-8000

Conversation

@VsevolodX

@VsevolodX VsevolodX commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The api-client tools (api-client#53) keep only functions that call the API, so the helpers that read or edit a workflow, its units and its k-grid are now mat3ra.wode.tools (espresso, workflow, unit), laid out like made's tools and installed with a tools extra that adds prode; the k-grid from a density is PointsGridDataProvider.calculate_dimensions_from_density.

Part of the SOF-8000 set, merged and released in this order: prode#61, ide#26, utils#60, jode#9 → wode#178 → api-client#53 → api-examples#417 → mcp-server#1.

🤖 Generated with Claude Code

…from api-client tools, with their tests

set_execution_unit_input, set_assignment_value, patch_workflow_qe_input, apply_scf_kgrid, apply_planewave_cutoffs, kgrid_from_density, get_kgrid_query, get_kgrid_of_job and get_fermi_energy_flowchart_id read or edit workflow, unit or job-workflow structure and call no API, so they leave mat3ra/api-client#53 unchanged. get_fermi_energy_flowchart_id needs mat3ra-prode for the property name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
return str(value)


def patch_workflow_qe_input(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this go to wode.tools under espresso similar https://github.com/mat3ra/made/tree/main/src/py/mat3ra/made/tools

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done in 977ecf5 — patch_workflow_qe_input and the other functions are in mat3ra/wode/tools/ (espresso with helpers.py, workflow, unit), laid out like made's tools; workflows/workflow.py and units/execution.py are back to main. prode is a tools extra.

"units": "crystal",
},
}
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be taken from standata

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done in 977ecf5 and 5e14821 — this test builds Graphene and Silicon from Standata Materials and the hand-built lattice helper is deleted; the espresso tools test takes its material from Standata too.

raise NotImplementedError


def kgrid_from_density(material: Material, density: float, periodic_dims: tuple = (0, 1, 2)) -> List[int]:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can be in calculate_dimensions_from_density

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done in 977ecf5 — PointsGridDataProvider.calculate_dimensions_from_density replaces the module function; notebooks_utils kgrid_from_density calls it.

VsevolodX and others added 4 commits November 27, 2026 19:24
… here from api-client tools, with its test

to_object_storage_input builds an object_storage input item of a workflow IO unit and calls no API, so it sits beside the IO unit as io.py, named like the other unit modules after the JS units/IOUnit.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ools packages with their tests, mat3ra-prode in the tools extra, k-grid from density as PointsGridDataProvider.calculate_dimensions_from_density tested on Standata materials

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Standata

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@VsevolodX VsevolodX changed the title feature/SOF-8000 Chore: workflow, unit and k-grid helpers moved here from notebooks_utils feature/SOF-8000 Feature: tools package with the workflow, unit and k-grid helpers Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants