Pull from materialsproject [WIP]#10
Open
mmbliss wants to merge 4866 commits into
Open
Conversation
* pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.12...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](pre-commit/mirrors-mypy@v1.16.0...v1.16.1) - [github.com/MarcoGorelli/cython-lint: v0.16.6 → v0.16.7](MarcoGorelli/cython-lint@v0.16.6...v0.16.7) - [github.com/RobertCraigie/pyright-python: v1.1.401 → v1.1.402](RobertCraigie/pyright-python@v1.1.401...v1.1.402) * pre-commit auto-fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…me` (#4454) * remove unit in docstring for density of solid * add unit hatree to "Atomic orbitals" * fix unit for molar volume * maybe recover unit in docstring, need discussion * MN m^-2 -> MPa for Brinell and Vickers hardness
* clean up tests * remove trailing line sensitivity * simplify temp file * lint fix * add test * fix filename Co-authored-by: Aakash Ashok Naik <91958822+naik-aakash@users.noreply.github.com> Signed-off-by: Haoyu (Daniel) YANG 杨浩宇 <yanghaoyu97@outlook.com> * also test default filename * test `_get_lines` --------- Signed-off-by: Haoyu (Daniel) YANG 杨浩宇 <yanghaoyu97@outlook.com> Co-authored-by: Aakash Ashok Naik <91958822+naik-aakash@users.noreply.github.com>
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.18.8 to 1.18.9. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](sparklemotion/nokogiri@v1.18.8...v1.18.9) --- updated-dependencies: - dependency-name: nokogiri dependency-version: 1.18.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* unignore PERF401 rule * fix core * fix dev_scripts * fix ext * fix entries * fix symmetry * fix transformations * fix alchemy * fix apps * fix command line * fix phonon * fix lobster * fix vasp * fix io * fix electronic structure * fix analysis * fix typo * fix some mypy error * add test
* Update FHI-aims io to use pyfhiaims * Update si for file format changes consistent number of # * update ref file with blank line in header * Update for new parsers * Replace where AimsParseError is located updating parsers * Add modified converters interface. Move that to pyfhiaims * Update for pyfhiaims parsers * Updates from pyfhiaims cleanups * update tests for new interface restults seemed to have change, so fixing that * fix things for atomate2 * modify pyproject.toml Add optional aims reqirement of pyfhiaims * Add importorskip line for pyfhiaims Should skip aims test without the optional dependency * Remove FHI-aims test files Tests will be done in pyfhiaims as per @shyuep request * fix build errors aims not apart of optional as it's not needed in tests * Add pymatgen-io-aims to the add on's page * FHI-aims now in add on remove copied files from the add on
updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.12.7](astral-sh/ruff-pre-commit@v0.12.2...v0.12.7) - [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.17.1](pre-commit/mirrors-mypy@v1.16.1...v1.17.1) - [github.com/RobertCraigie/pyright-python: v1.1.402 → v1.1.403](RobertCraigie/pyright-python@v1.1.402...v1.1.403) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* clean up type and docs * remove non-existent interpolation_order arg * clean up comment for arg `spline_options` * clean up doc more * deprecate `spline_options` with a more understandable zero_slope_saddle flag * exact match first for glob * completely deprecate spline_options * completely deprecate spline_options * more doc and type cleanup * a -> an NEB * fix relative energy * fix test
* capture expected warning * fix python 3.10 syntaxerror * pre-commit auto-fixes * test 3.10 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Addition of JDFTx set to pymatgen from atomate2. * None structure handling in input set generation --------- Signed-off-by: Cooper <101949243+cote3804@users.noreply.github.com> Co-authored-by: cote3804 <cooyploopy@gmail.com>
* remove deprecated args
* loose requests pin
* loose further to first version for python 3.10
* fix deprecate warning from numpy.cross
/Users/yang/developer/pmg/tests/analysis/test_interface_reactions.py:367:
DeprecationWarning: Arrays of 2-dimensional vectors are deprecated. Use
arrays of 3-dimensional vectors instead. (deprecated in NumPy 2.0)
positions = [np.cross(v1, v2) for v1, v2 in relative_vectors]
* fix encoding warning
* fix numpy deprecation warning
/Users/yang/developer/pmg/src/pymatgen/core/tensors.py:292:
DeprecationWarning: __array_wrap__ must accept context and return_scalar
arguments (positionally) in the future. (Deprecated NumPy 2.0)
* ignore import position
* check status before parsing
* limit scope of env var
* more explicit skip reason
* use approx for float
* check mp api key length
* I don't think we need to set api globally but could be wrong
* tweak
* Revert "I don't think we need to set api globally but could be wrong"
This reverts commit c5493c3.
* revert debug change
* revert get_entries arg change in test
* fix syntax error in python < 3.11
src/pymatgen/io/jdftx/outputs.py:328:45: SyntaxError: Cannot use star
expression in index on Python 3.10 (syntax was added in Python 3.11)
* match warning
* avoid default value in test function
* fix pytest-warns-with-multiple-statements (PT031)
* ignore PLW1641 fix now
* warning order should not matter
* Writing numpy-version-dependent code
https://numpy.org/doc/stable/numpy_2_0_migration_guide.html#writing-numpy-version-dependent-code
* commit uv lock
* replace monty copy_r
* fix has_cobi when NcICOBILIST is present * linebreak * pre-commit auto-fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* overwrite default grou * [NEED CONFIRM] remove lock file for PDM * try replace with uv * update guide * maybe we don't need explicit activate * clean up linting workflow * remove dgl/matgl install which doesn't seem to do anything * also remove pdm dev dep * clean up pre-commit guide * Revert "[NEED CONFIRM] remove lock file for PDM" This reverts commit 2f135a1. * Revert "also remove pdm dev dep" This reverts commit c1cec26. * separate dev dep groups * remove ci group * module var all cap * fix pytest as not really using venv from uv, but mamba DEBUG: why moyopy is not available when it's installed? DEBUG: revert some changes Revert "DEBUG: why moyopy is not available when it's installed?" This reverts commit 5036d54. uv run try to remove explicit active again emmm nope, still need manual activation remove manual activate again, but I don't think uv run would re-sync venv? * remove contributing at root * clean up contributing guide * update admin.md * update uv lock * update docs * don't need manual line wrap * clean up usage.md
This reverts commit 117effe.
…nal_energy_components` (#4440) * Filling out `JOutStructure.properties` for feeding to `frame_properties` for `Trajectory` in `JDFTXOutfileSlice.trajectory` * unneccessary line * better comments on joutstructure initialization order * TODOs * Adding missing kinetic_functional option * Removing vestigial function * Vibrations parsing and testing * removing debug comments * removing commented out code * Parsing and testing for vibrational energy components * Add vibrational data to `JDFTXOutfile` to be read from `JDFTXOutfileSlice` --------- Co-authored-by: Shyue Ping Ong <shyuep@users.noreply.github.com>
Bumps [pillow](https://github.com/python-pillow/Pillow) from 12.1.1 to 12.2.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@12.1.1...12.2.0) --- updated-dependencies: - dependency-name: pillow dependency-version: 12.2.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Update actions still on Node 20 to their latest Node 24-based releases and pin floating third-party tags to specific versions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
astral-sh/setup-uv has no floating v8 tag (only v8.0.0/v8.1.0), which broke action resolution after the bump from @v8.0.0 to @v8. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…el packages Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.19.1 to 1.19.3. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](sparklemotion/nokogiri@v1.19.1...v1.19.3) --- updated-dependencies: - dependency-name: nokogiri dependency-version: 1.19.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [faraday](https://github.com/lostisland/faraday) from 2.14.1 to 2.14.2. - [Release notes](https://github.com/lostisland/faraday/releases) - [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md) - [Commits](lostisland/faraday@v2.14.1...v2.14.2) --- updated-dependencies: - dependency-name: faraday dependency-version: 2.14.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
pymatgen-core's default branch is main; the depth=1 fetch of master* matched nothing and aborted the Pages build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
setup-micromamba is broken on Windows runners since ~2026-05-14 (STATUS_DLL_NOT_FOUND, mamba-org/setup-micromamba#306). Mirror the workaround already applied in pymatgen-core: use actions/setup-python on Windows and create a uv venv to host the test install. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Addresses dependabot alerts: - idna < 3.15 (CVE-2024-3651 bypass, medium) - urllib3 < 2.7.0 (sensitive header forwarding on proxied redirects, high) - urllib3 2.6.x decompression-bomb safeguards bypass (high) Lock and requirements.txt regenerated via `uv lock --upgrade-package idna --upgrade-package urllib3` and `uv pip compile`, which also pulled in incidental updates to monty, plotly, tqdm, etc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pull updates from materialsproject master to make this branch compatible with python 3.9. Only take commits up until version 2022.1.20 (January 20, 2022).
TODO (if any)
Need to test this branch to ensure it functions and can be installed on python 3.9 (and possible 3.8 and 3.10)
Checklist
Before a pull request can be merged, the following items must be checked:
is to run the following in the correct sequence on your local machine. Start with running
black on your new code. This will automatically reformat
your code to PEP8 conventions and removes most issues. Then run
pycodestyle, followed by
flake8.
Run pydocstyle on your code.
Note that the CI system will run all the above checks. But it will be much more efficient if you already fix most
errors prior to submitting the PR. It is highly recommended that you use the pre-commit hook provided in the pymatgen
repository. Simply
cp pre-commit .git/hooksand a check will be run prior to allowing commits.