fix: load complete temporal dataset inventory
This commit is contained in:
@@ -446,6 +446,15 @@ def main() -> int:
|
||||
)
|
||||
layer_path = args.output_dir / f"waterinfo_{parameter.key}_station_layer.json"
|
||||
layer_sha256 = write_json(layer_path, station_layer)
|
||||
if not stations:
|
||||
results.append(
|
||||
{
|
||||
"parameter": parameter.key,
|
||||
"timeseries_group_id": parameter.group_id,
|
||||
"status": "no_stations_in_area",
|
||||
"observation_count": 0,
|
||||
}
|
||||
)
|
||||
if len(stations) > args.max_stations:
|
||||
raise RuntimeError(
|
||||
f"Waterinfo returned {len(stations)} in-area {parameter.key} stations; safety limit is {args.max_stations}"
|
||||
|
||||
Reference in New Issue
Block a user