Results¶
rucola.DetectionResult(station_detections, parameter, mode='ratio')
dataclass
¶
Raw output of Rucola.run() — all test results before normalization.
summary
property
¶
Per-station detection summary.
Columns: station_id, group, n_steps_tested, n_significant, n_applied. Sorted by n_significant descending.
__repr__()
¶
Return short summary string.
Source code in src/rucola/_results.py
from_dict(d)
classmethod
¶
Deserialise from a dict produced by to_dict.
Source code in src/rucola/_results.py
from_json(path)
classmethod
¶
normalize(config=None)
¶
Apply corrections based on config and return a HomogenizationResult.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
NormalizationConfig | None
|
Normalization configuration. Defaults to NormalizationConfig() if not provided. |
None
|
Source code in src/rucola/_results.py
to_dict()
¶
Serialise to a JSON-compatible dict.
Source code in src/rucola/_results.py
to_json(path)
¶
to_markdown()
¶
Render detection results as a Markdown document.
Produces a summary table followed by a per-station section. Each station section contains a step overview and — when multiple tests are run or tests disagree on the break year — a per-step detail table showing each test's result individually.
Source code in src/rucola/_results.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 | |
rucola.HomogenizationResult(station_results, parameter)
dataclass
¶
Full 6-step homogenization result for all tested stations.
corrections
property
¶
All applied corrections across all stations, flat DataFrame.
Columns: station_id, step, break_year, factor.
group_counts
property
¶
Count of stations per final group label.
summary
property
¶
One row per tested station.
Sorted by n_corrections descending. Columns: station_id, group, n_corrections, break_years, n_neighbors (from last step used).
from_dict(d)
classmethod
¶
Deserialise from a dict produced by to_dict.
Source code in src/rucola/_results.py
from_json(path)
classmethod
¶
to_dict()
¶
Serialise to a JSON-compatible dict.
rucola.StationDetection(station_id, group, annual_original, annual_corrected, years, detections_by_step=dict(), neighbors_by_step=dict(), corrections=list())
dataclass
¶
Raw detection data for one station across all procedure steps.
from_dict(d)
classmethod
¶
Deserialise from a dict produced by to_dict.
Source code in src/rucola/_results.py
to_dict()
¶
Serialise to a JSON-compatible dict.
Source code in src/rucola/_results.py
rucola.StationResult(station_id, group, corrections, neighbors_by_step, annual_original, annual_corrected, years)
dataclass
¶
Full homogenization result for one station.
from_dict(d)
classmethod
¶
Deserialise from a dict produced by to_dict.
Source code in src/rucola/_results.py
to_dict()
¶
Serialise to a JSON-compatible dict.