fix: pass material at the two remaining PointsGridDataProvider call sites - #362
Conversation
…ites SOF-7990 made KPPRA and the reciprocal vector ratios derive from the material rather than assume one atom, so a call without it now raises. These two were missed: neb.ipynb builds its k-grid unconditionally when NEB_KGRID is set, and the twisted-bilayer example builds one per entry in MATERIALS.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe bilayer example and NEB workflow now pass material objects to ChangesMaterial-aware k-grid setup
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change updates two notebook call sites to provide the required material when constructing k-grid providers. It is localized and merge-ready after normal checks and review, with no actionable merge-blocking risk remaining. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
SOF-7990 made KPPRA and the reciprocal vector ratios derive from the material rather than assume a single atom, so constructing
PointsGridDataProviderwith dimensions but no material now raises.Two call sites were missed in #357:
workflows/neb.ipynb— builds a k-grid wheneverNEB_KGRIDis set, and it defaults to[1, 1, 1], so the branch always runs. Usessaved_materials[0], the initial image of the path.specific_examples/interface_bilayer_twisted_commensurate_lattices_molybdenum_disulfide_SIMULATION.ipynb— builds one grid per entry inMATERIALS. Usesmaterials[name], the loaded material for that entry.Verified against published
mat3ra-wode==2026.8.26.post1: the old form raisesKPPRA and reciprocal vector ratios come from material=<mat3ra.made.Material>; the new form returnsgridMetricValue=2,reciprocalVectorRatios=[1.0, 1.0, 1.0]for 2-atom Si.A repo-wide sweep now shows every
PointsGridDataProvider(call passingmaterial=.🤖 Generated with Claude Code
Summary by CodeRabbit