From c77fbdb32334070c79084a0e2c72880a7258c3b5 Mon Sep 17 00:00:00 2001 From: Stephen Nneji Date: Tue, 20 Oct 2026 14:18:36 +0100 Subject: [PATCH 1/2] Ensure function name is always saved to json --- pyproject.toml | 2 +- ratapi/project.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 51d0d9d9..4cde8107 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = 'setuptools.build_meta' [project] name = "ratapi" -version = "1.0.0" +version = "1.0.1.dev0" description = "Python extension for the Reflectivity Analysis Toolbox (RAT)" readme = "README.md" requires-python = ">=3.10" diff --git a/ratapi/project.py b/ratapi/project.py index ddb7e9b9..c1ebe45b 100644 --- a/ratapi/project.py +++ b/ratapi/project.py @@ -961,9 +961,8 @@ def make_custom_file_dict(item): "filename": item.filename, "language": item.language, "path": str(item.path), + "function_name": item.function_name, } - if item.name != item.function_name: - file_dict["function_name"] = item.function_name return file_dict From c91c9753575cab8dc2d22512e6ab94fac4c46821 Mon Sep 17 00:00:00 2001 From: Stephen Nneji Date: Wed, 21 Oct 2026 10:01:34 +0100 Subject: [PATCH 2/2] fix pydantic version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4cde8107..01ac054e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ "matplotlib>=3.8.3", "numpy>=1.20", "prettytable>=3.9.0", - "pydantic>=2.7.2", + "pydantic>=2.7.2, <2.14", "scipy>=1.13.1, <=1.17.1", "strenum>=0.4.15 ; python_full_version < '3.11'", "tqdm>=4.66.5",