Skip to content

Commit eec3bb7

Browse files
committed
Set spglib.error.OLD_ERROR_HANDLING = False to handle change to how spglib handles errors in v2.7.0
1 parent 3e5dd1e commit eec3bb7

12 files changed

Lines changed: 30 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to `libcasm-configuration` will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.3.1] - 2026-02-26
9+
10+
### Fixed
11+
12+
- Fixed `OLD_ERROR_HANDLING` warnings from spglib
13+
14+
815
## [2.3.0] - 2026-02-26
916

1017
### Changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
33

4-
project(CASMcode_configuration VERSION 2.3.0 LANGUAGES CXX)
4+
project(CASMcode_configuration VERSION 2.3.1 LANGUAGES CXX)
55

66
# set CMAKE_INSTALL_X variables
77
include(GNUInstallDirs)

CMakeLists.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
33

4-
project(CASMcode_configuration VERSION 2.3.0 LANGUAGES CXX)
4+
project(CASMcode_configuration VERSION 2.3.1 LANGUAGES CXX)
55

66
# set CMAKE_INSTALL_X variables
77
include(GNUInstallDirs)

doc/doxygen_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "CASM_configuration"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 2.3.0
41+
PROJECT_NUMBER = 2.3.1
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build-backend = "setuptools.build_meta"
1414

1515
[project]
1616
name = "libcasm-configuration"
17-
version = "2.3.0"
17+
version = "2.3.1"
1818
authors = [
1919
{ name="CASM developers", email="casm-developers@lists.engr.ucsb.edu" },
2020
]

python/doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# -- package specific configuration --
44
project = "libcasm-configuration"
55
version = "2.3" # The short X.Y version.
6-
release = "2.3.0" # The full version, including alpha/beta/rc tags.
6+
release = "2.3.1" # The full version, including alpha/beta/rc tags.
77
project_desc = "CASM configuration comparison and enumeration"
88
logo_text = "libcasm-configuration"
99
github_url = "https://github.com/prisms-center/CASMcode_configuration/"

python/libcasm/configuration/io/_symgroup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ def symgroup_to_dict_with_group_classification(
8282
try:
8383
import spglib
8484

85+
try:
86+
spglib.error.OLD_ERROR_HANDLING = False
87+
except:
88+
pass
89+
8590
except ImportError:
8691
data["group_classification"] = None
8792
return data

python/libcasm/configuration/io/spglib.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
import libcasm.configuration.io.tools as io_tools
1313
import libcasm.xtal as xtal
1414

15+
try:
16+
spglib.error.OLD_ERROR_HANDLING = False
17+
except:
18+
pass
19+
1520

1621
def asdict(
1722
obj: typing.Any,

python/tests/configuration/functions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
import libcasm.xtal as xtal
77

8+
try:
9+
spglib.error.OLD_ERROR_HANDLING = False
10+
except:
11+
pass
12+
813

914
def check_symmetry_dataset(
1015
symmetry_dataset: typing.Any,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="libcasm-configuration",
5-
version="2.3.0",
5+
version="2.3.1",
66
packages=[
77
"libcasm",
88
"libcasm.clusterography",

0 commit comments

Comments
 (0)