Skip to content

Commit ccc0037

Browse files
authored
Ensure function name is always saved to project json (#217)
1 parent 65f155e commit ccc0037

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ build-backend = 'setuptools.build_meta'
88

99
[project]
1010
name = "ratapi"
11-
version = "1.0.0"
11+
version = "1.0.1.dev0"
1212
description = "Python extension for the Reflectivity Analysis Toolbox (RAT)"
1313
readme = "README.md"
1414
requires-python = ">=3.10"
1515
dependencies = [
1616
"matplotlib>=3.8.3",
1717
"numpy>=1.20",
1818
"prettytable>=3.9.0",
19-
"pydantic>=2.7.2",
19+
"pydantic>=2.7.2, <2.14",
2020
"scipy>=1.13.1, <=1.17.1",
2121
"strenum>=0.4.15 ; python_full_version < '3.11'",
2222
"tqdm>=4.66.5",

‎ratapi/project.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,8 @@ def make_custom_file_dict(item):
961961
"filename": item.filename,
962962
"language": item.language,
963963
"path": str(item.path),
964+
"function_name": item.function_name,
964965
}
965-
if item.name != item.function_name:
966-
file_dict["function_name"] = item.function_name
967966

968967
return file_dict
969968

0 commit comments

Comments
 (0)