style: formatting and linting in affected files
CI / lint (pull_request) Successful in 51s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.11) (pull_request) Successful in 26s
CI / test (3.13) (pull_request) Successful in 23s
CI / lint (push) Canceled after 11s
CI / test (3.11) (push) Canceled after 0s
CI / test (3.12) (push) Canceled after 0s
CI / test (3.13) (push) Canceled after 0s
Build and Publish / release (push) Successful in 11s
CI / lint (pull_request) Successful in 51s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.11) (pull_request) Successful in 26s
CI / test (3.13) (pull_request) Successful in 23s
CI / lint (push) Canceled after 11s
CI / test (3.11) (push) Canceled after 0s
CI / test (3.12) (push) Canceled after 0s
CI / test (3.13) (push) Canceled after 0s
Build and Publish / release (push) Successful in 11s
This commit was merged in pull request #17.
This commit is contained in:
@@ -139,7 +139,7 @@ def find_existing_formatter(
|
||||
return logging.Formatter(default_fmt, datefmt=default_datefmt)
|
||||
|
||||
|
||||
def attach_to_logger(logger_name: str = "", handler: logging.Handler | None = None):
|
||||
def attach_to_logger(logger_name: str, handler: logging.Handler):
|
||||
logging.getLogger(logger_name).addHandler(handler)
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import numpy as np
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ def rebuild_array_from_scan_results(
|
||||
ny_field: str = "ny",
|
||||
default_value: float = 0.0,
|
||||
threshold: float | None = None,
|
||||
condition_func: Callable | None = None,
|
||||
condition_func: Callable[[float], bool] | None = None,
|
||||
apply_filter_before: bool = True,
|
||||
) -> np.ndarray:
|
||||
positions = []
|
||||
@@ -403,7 +403,7 @@ def _draw_panel(
|
||||
import matplotlib.patches as mpatches
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from aarecommon.coordinate import Coordinate
|
||||
from aarecommon.math.coordinate import Coordinate
|
||||
|
||||
n_nx, n_ny = arr.shape
|
||||
max_nx, max_ny = _max_cell(arr)
|
||||
@@ -570,9 +570,7 @@ CRYSTAL_METHOD_MAP: dict = {
|
||||
|
||||
|
||||
def compare_crystal_methods(
|
||||
results: list,
|
||||
arr: np.ndarray | None = None,
|
||||
grid_size_mm: tuple[float, float] | None = None,
|
||||
results: list, arr: np.ndarray | None = None, grid_size_mm: tuple[float, float] | None = None
|
||||
) -> None:
|
||||
"""Plot each crystal-detection method side-by-side for visual comparison.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user