Skip to content

fix(SOF-8067): partial chemical potentials, GROUP and per-formula k-grid in the convex hull, relaxed-host unit filter - #384

Open
VsevolodX wants to merge 6 commits into
mainfrom
fix/SOF-8067-defect-hull
Open

VsevolodX wants to merge 6 commits into
mainfrom
fix/SOF-8067-defect-hull

Conversation

@VsevolodX

@VsevolodX VsevolodX commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Partial CHEMICAL_POTENTIALS no longer crash (unlisted elements get Δμ = 0), the convex hull takes a k-grid per formula and respects GROUP, and the relaxed-host lookup always filters by relaxation unit.

🤖 Generated with Claude Code

VsevolodX and others added 5 commits October 7, 2026 15:15
…zero shift

get_formation_energy_at_chemical_potentials raised KeyError when CHEMICAL_POTENTIALS
left out an element of the job, e.g. {"O": -5.346} on V_O in HfO2. Such an element now
stays at the reference the job used (delta_mu = 0).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rgies by k-grid

With SCF_KGRID set, analyze_convex_hull took the total energy of any job on the
k-grid, whatever its group. find_job_for_material_with_property takes an optional
group regex for the property it checks, and the notebook passes GROUP.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
One SCF_KGRID for every material left the elemental references without an energy:
Hf and Zr run on their own converged grids, O2 on another, next to the oxides.
SCF_KGRID_BY_FORMULA maps a formula to the k-grid of its total energy job; a formula
not listed takes the highest-precision energy (or PRECISION), as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ter without a k-grid

find_relaxed_material filtered by the relaxation unit only through the k-grid query,
so with SCF_KGRID = None any finished job with a new final structure counted as the
relaxed host. The unit filter now always applies; the default unit is pw_relax, the
fixed-cell relaxation the notebooks that call it without a unit run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…o shift for a missing element

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e6b6ce6e-99dc-47d4-95c1-7532dc4b1b51
📥 Commits

Reviewing files that changed from the base of the PR and between dffc09a and 3f4af12.

📒 Files selected for processing (7)
  • other/materials_designer/workflows/analyze_convex_hull.ipynb
  • src/py/mat3ra/notebooks_utils/core/entity/job/api.py
  • src/py/mat3ra/notebooks_utils/core/entity/material/api.py
  • src/py/mat3ra/notebooks_utils/core/entity/property/defect_analysis.py
  • tests/py/unit/core/entity/test_job_api.py
  • tests/py/unit/core/entity/test_material_api.py
  • tests/py/unit/core/entity/test_property_defect_analysis.py
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…ings

The group check is one more row of the k-grid test, the relaxation lookup keeps its
original k-grid test, and the formation-energy docstring drops the added clause.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant