Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
]
Expand Down
8 changes: 4 additions & 4 deletions src/eas_3d_pattern/util_func/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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)
Expand Down