diff --git a/docs/examples/twri.py b/docs/examples/twri.py index 35d17d24..b0a72435 100644 --- a/docs/examples/twri.py +++ b/docs/examples/twri.py @@ -254,7 +254,7 @@ def plot_head(head, workspace): # add array based inputs # TODO: needs type checking and list consolidation support (see comments in gwf init) -gwf.chd = [chdg] +gwf.chdg = [chdg] gwf.drng = [drng] gwf.welg = [welg] gwf.rcha = [rcha] diff --git a/flopy4/mf6/codec/reader/grammar/basic.lark b/flopy4/mf6/codec/reader/grammar/basic.lark index af2f3415..c7b256c0 100644 --- a/flopy4/mf6/codec/reader/grammar/basic.lark +++ b/flopy4/mf6/codec/reader/grammar/basic.lark @@ -4,7 +4,7 @@ block_name: CNAME [INT] _list: line* line: [WS] item+ _NL+ item: word | NUMBER -word: /[a-zA-Z0-9._'~,-\\(\\)]+/ +word: /[a-zA-Z0-9._'~,+-\\(\\)]+/ %import common.NEWLINE -> _NL %import common.WS diff --git a/flopy4/mf6/codec/reader/grammar/typed.lark b/flopy4/mf6/codec/reader/grammar/typed.lark index a3248bc4..c4342949 100644 --- a/flopy4/mf6/codec/reader/grammar/typed.lark +++ b/flopy4/mf6/codec/reader/grammar/typed.lark @@ -19,7 +19,7 @@ filename: ESCAPED_STRING | word data: double+ record: token+ NEWLINE token: number | word -word: /(?!(?i:begin|end))[a-zA-Z0-9._'~,-\\(\\)]+/ +word: /(?!(?i:begin|end))[a-zA-Z0-9._'~,+-\\(\\)]+/ _token: word | number %import common.NEWLINE diff --git a/flopy4/mf6/codec/writer/filters.py b/flopy4/mf6/codec/writer/filters.py index bf9fa0ac..098260c8 100644 --- a/flopy4/mf6/codec/writer/filters.py +++ b/flopy4/mf6/codec/writer/filters.py @@ -115,7 +115,7 @@ def array2string(value: NDArray) -> str: format = ( "%d" if np.issubdtype(value.dtype, np.integer) - else "%.9f" + else "%.9e" if np.issubdtype(value.dtype, np.floating) else "%s" )