Skip to content

Commit a0790ac

Browse files
committed
Make slice_index a NonNegativeInt
1 parent 4f3e90e commit a0790ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torax/_src/geometry/pydantic_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
"""Pydantic model for geometry."""
1616

17-
from collections.abc import Callable, Mapping
17+
from collections.abc import Callable
18+
from collections.abc import Mapping
1819
import functools
1920
import inspect
2021
from typing import Annotated, Any, Literal, TypeAlias, TypeVar
@@ -303,7 +304,7 @@ class IMASConfig(torax_pydantic.BaseModelFrozen):
303304
imas_filepath: str | None = 'ITERhybrid_COCOS17_IDS_ddv4.nc'
304305
imas_uri: str | None = None
305306
equilibrium_object: ids_toplevel.IDSToplevel | None = None
306-
slice_index: int = 0
307+
slice_index: pydantic.NonNegativeInt = 0
307308
slice_time: float | None = None
308309

309310
@pydantic.model_validator(mode='after')

0 commit comments

Comments
 (0)