Skip to content
代码片段 群组 项目
该项目从 https://github.com/materialsproject/pymatgen.git 镜像。 Pull mirroring failed .
由于尝试失败次数过多,仓库镜像已暂停,可以由项目维护者或所有者恢复。
上次成功更新
  1. 6月 04, 2024
  2. 6月 03, 2024
    • Haoyu (Daniel)'s avatar
      Clarify argument `shift` for `SlabGenerator.get_slab` (#3748) · eed8403b
      Haoyu (Daniel) 创作于
      
      * put `is_symmetric/polar` next to `property`
      
      * BREAKING: reverse `get_slab` shift direction
      
      * clarify `shift` for single atom
      
      * use `isclose` to determine overlap atoms
      
      * correct tolerance unit
      
      * Revert "put `is_symmetric/polar` next to `property`"
      
      This reverts commit 65e3ec86a19903272e24b7036924d70403bcd5ed.
      
      * reapply docstring changes
      
      * use `isclose` to check close
      
      * fix typo in tag
      
      * remove debug tag
      
      * pre-commit auto-fixes
      
      * make `center_slab` very simple
      
      * Failed: make center_slab and get_slab_regions methods for `Slab`
      
      * revert deprecation of `center_slab` function
      
      * revert "overlap position check with isclose"
      
      * revert deprecation of center_slab and get_slab_regions
      
      * revert changes for `center_slab` function
      
      * recover docstring
      
      * rename slab to struct (type is Structure)
      
      * revert adding minus sign
      
      * fix slab type
      
      * keep shift def consistent (need clarify)
      
      * unify usage of shift outside Slab
      
      * fix unit test
      
      * add missing minus sign for single atom shift
      
      * [need confirm] fix test for coh-interface
      
      * add TODO tag
      
      * clarify shift definition
      
      * revert ALL change related to the direction of shift
      
      * rename arg shift to termination
      
      * tweak comments
      
      * clarify `shift` attrib in `Slab`
      
      * clarify magic number
      
      * simplify doc
      
      * reuse `center_slab` func
      
      * remove unneeded TODO tag
      
      * revert shift to termination rename
      
      * remove finished TODO tag
      
      ---------
      
      Co-authored-by: default avatarJanosh Riebesell <janosh.riebesell@gmail.com>
      eed8403b
    • Janosh Riebesell's avatar
      Add CI run without `'optional'` deps installed (#3857) · d1fac203
      Janosh Riebesell 创作于
      * add CI run on macos-latest, python=3.12 with resolution: lowest and extras: '' to test pymatgen without any optional deps installed
      
      * restore quotes around py version
      
      * fix error: Failed to parse: `.[ci,]`
        Caused by: Couldn't parse requirement at position 5
        Caused by: Expected an alphanumeric character starting the extra name, found ']'
      .[ci,]
      
      * change uv resolution to lowest-direct on macos
      
      * skip pwmat input tests that require seekpath if optional seekpath is not installed
      
      * Trajectory class: raise ImportError with ASE installation instructions when reading .traj files
      
      * fix TestTrajectory.test_from_file() when ase not installed, test expected error message
      
      * Fix outdated NO_ASE_ERR attribute access in test_ase.py
      
      * simplify ComputedEntry.__eq__
      
      f-strings, better var names, fix ruff RUF002
      d1fac203
    • Haoyu (Daniel)'s avatar
      Fix filter condition for warn msg of unphysical site occupancy in `io.cif` (#3853) · 1a5af184
      Haoyu (Daniel) 创作于
      
      * fix filter condition and to list
      
      * update unit test for err msg
      
      * increase monty version
      
      * Revert "increase monty version"
      
      This reverts commit e281fdfdcb047a2cb0703be6b3235aaad760875b.
      
      ---------
      
      Co-authored-by: default avatarJanosh Riebesell <janosh.riebesell@gmail.com>
      1a5af184
    • Janosh Riebesell's avatar
      Run CI with two different `uv` resolution strategies: `highest` and `lowest-direct` (#3852) · eccf075b
      Janosh Riebesell 创作于
      * fix typing_extensions ImportError
      
      https://github.com/materialsproject/pymatgen/pull/3752#issuecomment-2142954988
      
      * bump min ase to 3.23.0
      
      * test both lowest-direct and highest uv package resolutions in CI
      
      * establish some loose lower bounds on all deps
      
      needed for deps install with --resolution=lowest-direct to work
      
      * netcdf4>=1.6
      
      * pin chgnet==0.3.6
      
      * try chgnet==0.3.5
      
      * bump pre-commit hooks
      
      * imperative doc strings
      
      * doc str white space
      
      * test_string->test_str
      
      * ruff auto fixes
      
      * matgl>=1.1.1 numba>=0.55
      
      * try fix netcdf4 install
      
      * h5py>=3.9.0
      
      * monty>=2024.5.24
      
      fixes TypeError: deprecated() got an unexpected keyword argument 'deadline'
      
      * revert TestWavecar to again inherit from PymatgenTest
      
      * h5py>=3.11.0
      
      * phonopy>=2.23
      
      * scipy>=1.13.0
      
      * matplotlib>=3.8
      
      * requests>=2.32
      
      * don't run oldest/newest supported python twice on linux AND windows
      
      * fix bad refactor in get_atom_map
      
      fixes KeyError: 'Co' ipot = self.pot_dict[el.symbol]
      eccf075b
  3. 5月 31, 2024
    • Janosh Riebesell's avatar
      v2024.5.31 · 2982968a
      Janosh Riebesell 创作于
      v2024.5.31
      2982968a
    • Haoyu (Daniel)'s avatar
      Add type annotations for `io.vasp.outputs` (#3776) · c70e5b8a
      Haoyu (Daniel) 创作于
      * remove a lot of ignore tags
      
      * first go: quick look and comment/type tweaks
      
      * remove ALL type: ignore[reportPossiblyUnboundVariable]
      
      * a quick look
      
      * tweak module docstring
      
      * fix/supress PossiblyUnboundVariable
      
      * pre-commit fix
      
      * revert changes from other branch
      
      * [Need Discussion] set IVDW default to 0
      
      * suppress None error for ElementTree searches
      
      * replace dict update with |=
      
      * fix typo in update -> |=, and mypy fixes
      
      * fix another typo in update -> |=
      
      * add DEBUG tag and mypy fixes
      
      * remove DEBUG tag
      
      * more mypy fixes
      
      * more mypy fixes
      
      * mypy fixes
      
      * finish mypy errors
      c70e5b8a
    • Shyue Ping Ong's avatar
      Update reqs. · cd8846b3
      Shyue Ping Ong 创作于
      cd8846b3
    • Shyue Ping Ong's avatar
      Update reqs. · cec7d35b
      Shyue Ping Ong 创作于
      cec7d35b
  4. 5月 30, 2024
  5. 5月 28, 2024
  6. 5月 25, 2024
    • Haoyu (Daniel)'s avatar
      Improve type annotations for `core.structure` (#3837) · d0ad785f
      Haoyu (Daniel) 创作于
      
      * remove a lot of ignore tags
      
      * first go: quick look and comment/type tweaks
      
      * remove ALL type: ignore[reportPossiblyUnboundVariable]
      
      * a quick look
      
      * tweak module docstring
      
      * fix/supress PossiblyUnboundVariable
      
      * pre-commit fix
      
      * add debug tag
      
      * fix some mypy errors
      
      * fix some mypy errors
      
      * suppress errors in `__setitem__`
      
      * fix typos
      
      * fix union
      
      * revert change to md
      
      * tweaks
      
      ---------
      
      Co-authored-by: default avatarJanosh Riebesell <janosh.riebesell@gmail.com>
      d0ad785f
  7. 5月 23, 2024
  8. 5月 17, 2024
  9. 5月 15, 2024
  10. 5月 14, 2024
    • Haoyu (Daniel)'s avatar
      Guard `TYPE_CHECKING` only imports (#3827) · 40b0165c
      Haoyu (Daniel) 创作于
      
      * flake8 --select=TYP001
      
      * fix type import
      
      * format docstring to google style
      
      * fix more unguarded typecheck imports
      
      * format more docs to Google format
      
      * trigger CI (better var names)
      
      ---------
      
      Co-authored-by: default avatarJanosh Riebesell <janosh.riebesell@gmail.com>
      40b0165c
    • Haoyu (Daniel)'s avatar
      Add types for `core.molecular_orbitals/operations/sites/spectrum/tensor/xcfunc` (#3829) · 616abc52
      Haoyu (Daniel) 创作于
      * fix `core.molecular_orbitals`
      
      * fix `core.operations`
      
      * add types for site, mypy errors to fix
      
      * remove no_type_check decorator
      
      * move dunder methods to the top
      
      * fix mypy errors
      
      * remove debug tag
      
      * improve `spectrum`
      
      * finish `core.tensors`
      
      * finish `xcfunc`
      
      * fix hash of `SymmOp`
      
      * add a missing type
      
      * Revert "fix hash of `SymmOp`"
      
      This reverts commit bf2a953acfdd3f48a4c379b7030b3c897e43c8bf.
      
      * fix some types in operations
      
      * "TEST": remove one unused var, relocate another
      
      * final tweak types
      
      * avoid hard-code class name
      
      * format tweaks
      
      * type tweak
      
      * fix unit test
      
      * replace all `[0:x]` with `[:x]`
      616abc52
  11. 5月 13, 2024
  12. 5月 12, 2024
  13. 5月 10, 2024
  14. 5月 08, 2024
  15. 5月 07, 2024