Skip to content

Commit

Permalink
fix broken PrmsData file load with model_ws issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsen-usgs committed Jul 17, 2023
1 parent f44b05a commit b87bff0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gsflow/prms/prms_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def load_from_file(control_file, model_ws=None):
]
if "data_file" in control.record_names:
data_file = control.get_values("data_file")[0]
data_file = gsflow_io.get_file_abs(control_file, data_file)
data_file = gsflow_io.get_file_abs(
model_ws=model_ws,
fn=data_file
)
else:
data_file = None

Expand Down

0 comments on commit b87bff0

Please sign in to comment.