Minimum supported python distribution is now 3.9. Numpy dependency now reflect the ABI compatibility of the wheels.
We now provide proper class types with type-hints (using dataclasses.dataclass) for the output data structure.
See the Python API section for details for the list of new classes and affected functions.
For backward compatibility, the dict-like interface is still available, but it is planned to be removed:
spgtype: SpaceGroupType | None = get_spacegroup_type(cell)
assert spgtype is not None
print(spgtype['number'])
print(list(spgtype.items()))
However, we recommend using the dataclass interface:
spgtype: SpaceGroupType | None = get_spacegroup_type(cell)
assert spgtype is not None
print(spgtype.number)
If you really need dictionary, ...
from dataclasses import asdict
print(asdict(spgtype))
Fixes (magnetic space group)
[#479] Fix to check internal primitive symmetry search to avoid SEGV
Python API
Raised minimum python requirements to 3.9
Added classes: SpaceGroupType, MagneticSpaceGroupType, SpglibDataset, and SpglibMagneticDataset
Changed functions: get_spacegroup_type, get_spacegroup_type_from_symmetry, get_magnetic_spacegroup_type,
and get_magnetic_spacegroup_type_from_symmetry now return the equivalent
SpaceGroupType or MagneticSpaceGroupType object
Changed functions: get_symmetry_dataset now returns the equivalent SpglibDataset object
Changed functions: get_magnetic_symmetry_dataset now returns the equivalent SpglibMagneticDataset object
C Interface
Fix a potential segmentation fault in spacegroup.c:iterative_search_hall_number
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps spglib from 2.4.0 to 2.5.0.
Release notes
Sourced from spglib's releases.
Changelog
Sourced from spglib's changelog.
Commits
e4531bb
Update CI dependencies (#507)0eb811b
Fix cibuildwheel7fae5bb
Resolve trivial pre-commit issuesd730a0c
chore(deps): update ci and devdependencies3368f9e
feat: Add renovatebot (#506)a15ae72
Release v2.5.0 (#505)b6012cd
Release v2.5.00f50f42
badge: vcpkg status (#504)69016df
badge: vcpkg79285b0
Move type aliases outside TYPE_CHECKING and replace deprecated interface usag...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show