From da0f0257c6978fa30b6c1e4d143bed1c52706d65 Mon Sep 17 00:00:00 2001 From: Schoepfloeffel Date: Wed, 27 Aug 2025 13:24:30 +0200 Subject: [PATCH 1/2] REFACTOR: Changed input parameter name of generate_report_eas --- src/eas_3d_pattern/util_func/report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eas_3d_pattern/util_func/report.py b/src/eas_3d_pattern/util_func/report.py index 3d042e0..6f289d2 100644 --- a/src/eas_3d_pattern/util_func/report.py +++ b/src/eas_3d_pattern/util_func/report.py @@ -35,7 +35,7 @@ def temporarily_set_loglevel(logger_name: str, level: int) -> Iterator[None]: def generate_report_eas( - directory_path: Path | str, + input_directory: Path | str, output_directory: Path | str, plot: bool = False, subbands: dict[str, tuple[int, int]] = SUBBANDS_DEFAULT, @@ -46,7 +46,7 @@ def generate_report_eas( Additionally, aggregated data per array and per tilt and per subband is also generated. Args: - directory_path (Path | str): The path to the directory containing the JSON files. + input_directory (Path | str): The path to the directory containing the JSON files. output_directory (Path | str): The path to the directory where the report will be saved. plot (bool, optional): Whether to generate plots of the antenna patterns. Default is False. subbands (dict[str, tuple[int, int]], optional): A dictionary of subbands and their corresponding frequency ranges. Default is SUBBANDS_DEFAULT. @@ -70,8 +70,8 @@ def generate_report_eas( ... "path/to/directory", "path/to/output_directory", subband=my_own_subbands ... ) # with own subband """ - directory_path = Path(directory_path) - files = list(directory_path.glob("*.json")) + input_directory = Path(input_directory) + files = list(input_directory.glob("*.json")) if len(files) == 0: raise ValueError("Report: No .json files found in the directory.") output_directory = Path(output_directory) From 5a6a51dd7a335457d5f6d1061e2ac34ec728178e Mon Sep 17 00:00:00 2001 From: Schoepfloeffel Date: Wed, 27 Aug 2025 13:28:17 +0200 Subject: [PATCH 2/2] FIX: Fixed kaleido installation bug in pyproject where it could not find the binary for the designated OS. --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index e3fad22..b4eaff0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1002,14 +1002,14 @@ ptyprocess = ">=0.5" [[package]] name = "platformdirs" -version = "4.3.8" +version = "4.4.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4"}, - {file = "platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc"}, + {file = "platformdirs-4.4.0-py3-none-any.whl", hash = "sha256:abd01743f24e5287cd7a5db3752faf1a2d65353f38ec26d98e25a6db65958c85"}, + {file = "platformdirs-4.4.0.tar.gz", hash = "sha256:ca753cf4d81dc309bc67b0ea38fd15dc97bc30ce419a7f58d13eb3bf14c4febf"}, ] [package.extras] @@ -1872,4 +1872,4 @@ viz = ["cartopy (>=0.23)", "matplotlib", "nc-time-axis", "seaborn"] [metadata] lock-version = "2.1" python-versions = ">=3.11,<3.14" -content-hash = "e5dd545d1c80f69cdb2295b0058d44d27121ebde09aae0024886e6374d9f6825" +content-hash = "63bb1b8c3a99c8ef10dddef83599caf351fb01c96f02d4e7be7595a59accb802" diff --git a/pyproject.toml b/pyproject.toml index bf852c8..d363e29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "jsonschema (>=4.24.0,<5.0.0)", "xarray (>=2025.3.1,<2026.0.0)", "plotly (>=5.24.1,<6.0.0)", - "kaleido (>=0.1.0post1,<0.2.0)", + "kaleido (>=0.1.0, <0.2.0)", "requests (>=2.32.2,<3.0.0)", "tqdm (>=4.67.1,<5.0.0)", ]