File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ from typing import Optional
12import numpy as np
23from attrs import Converter
34from flopy .discretization .structuredgrid import StructuredGrid
@@ -65,7 +66,7 @@ class Dis(Package):
6566 dims = ("nlay" , "nrow" , "ncol" ),
6667 converter = Converter (dict_to_array , takes_self = True , takes_field = True ),
6768 )
68- idomain : NDArray [np .int32 ] = array (
69+ idomain : Optional [ NDArray [np .int32 ] ] = array (
6970 block = "griddata" ,
7071 default = 1 ,
7172 dims = ("nlay" , "nrow" , "ncol" ),
Original file line number Diff line number Diff line change 1+ from typing import Optional
12import numpy as np
23from attrs import Converter
34from numpy .typing import NDArray
1011
1112@xattree
1213class Ic (Package ):
13- strt : NDArray [np .float64 ] = array (
14+ strt : Optional [ NDArray [np .float64 ] ] = array (
1415 block = "packagedata" ,
1516 dims = ("nnodes" ,),
1617 default = 1.0 ,
You can’t perform that action at this time.
0 commit comments