Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/twri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion flopy4/mf6/codec/reader/grammar/basic.lark
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flopy4/mf6/codec/reader/grammar/typed.lark
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flopy4/mf6/codec/writer/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Loading