44import numpy as np
55from attrs import Converter , define
66from numpy .typing import NDArray
7- from xattree import array , field , xattree
7+ from xattree import xattree
88
99from flopy4 .mf6 .converters import convert_array
10+ from flopy4 .mf6 .decorators import array , field
1011from flopy4 .mf6 .package import Package
1112
1213
@@ -20,57 +21,47 @@ class Steps:
2021 steps : list [int ] = field ()
2122 frequency : int = field ()
2223
23- auxiliary : Optional [list [str ]] = array (
24- default = None , metadata = {"block" : "options" }
25- )
26- auxmultname : Optional [str ] = field (
27- default = None , metadata = {"block" : "options" }
28- )
29- boundnames : bool = field (default = False , metadata = {"block" : "options" })
30- print_input : bool = field (default = False , metadata = {"block" : "options" })
31- print_flows : bool = field (default = False , metadata = {"block" : "options" })
32- save_flows : bool = field (default = False , metadata = {"block" : "options" })
33- ts_filerecord : Optional [Path ] = field (
34- default = None , metadata = {"block" : "options" }
35- )
36- obs_filerecord : Optional [Path ] = field (
37- default = None , metadata = {"block" : "options" }
38- )
24+ auxiliary : Optional [list [str ]] = array (block = "options" , default = None )
25+ auxmultname : Optional [str ] = field (block = "options" , default = None )
26+ boundnames : bool = field (block = "options" , default = False )
27+ print_input : bool = field (block = "options" , default = False )
28+ print_flows : bool = field (block = "options" , default = False )
29+ save_flows : bool = field (block = "options" , default = False )
30+ ts_filerecord : Optional [Path ] = field (block = "options" , default = None )
31+ obs_filerecord : Optional [Path ] = field (block = "options" , default = None )
3932 dev_no_newton : bool = field (default = False , metadata = {"block" : "options" })
40- maxbound : Optional [int ] = field (
41- default = None , metadata = {"block" : "dimensions" }
42- )
33+ maxbound : Optional [int ] = field (block = "dimensions" , default = None )
4334 head : Optional [NDArray [np .floating ]] = array (
35+ block = "period" ,
4436 dims = (
4537 "nper" ,
4638 "nnodes" ,
4739 ),
4840 default = None ,
49- metadata = {"block" : "period" },
5041 converter = Converter (convert_array , takes_self = True , takes_field = True ),
5142 )
5243 aux : Optional [NDArray [np .floating ]] = array (
44+ block = "period" ,
5345 dims = (
5446 "nper" ,
5547 "nnodes" ,
5648 ),
5749 default = None ,
58- metadata = {"block" : "period" },
5950 converter = Converter (convert_array , takes_self = True , takes_field = True ),
6051 )
6152 boundname : Optional [NDArray [np .str_ ]] = array (
53+ block = "period" ,
6254 dims = (
6355 "nper" ,
6456 "nnodes" ,
6557 ),
6658 default = None ,
67- metadata = {"block" : "period" },
6859 converter = Converter (convert_array , takes_self = True , takes_field = True ),
6960 )
7061 steps : Optional [NDArray [np .object_ ]] = array (
7162 Steps ,
63+ block = "period" ,
7264 dims = ("nper" , "nnodes" ),
7365 default = None ,
74- metadata = {"block" : "period" },
7566 converter = Converter (convert_array , takes_self = True , takes_field = True ),
7667 )
0 commit comments