Skip to content
Merged
Changes from 1 commit
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
8 changes: 6 additions & 2 deletions nlmod/gwf/lake.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ def lake_from_gdf(
noutlets = len(outlets)

if boundname_column is not None:
obs_list = [(x, obs_type, x) for x in np.unique(gdf[boundname_column])]
observations = {f"{pname}_{obs_type}.csv": obs_list}
observations = {}
if isinstance(obs_type, str):
obs_type = [obs_type]
for otype in obs_type:
obs_list = [(x, otype, x) for x in np.unique(gdf[boundname_column])]
observations[f"{pname}_{otype}.csv"] = obs_list
else:
observations = None

Expand Down