Skip to content

Commit

Permalink
fix for pname in background aquifer
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Dec 10, 2024
1 parent 944e2f7 commit 6280815
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ttim/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ def set_parameter(
for iaq in aq:
setattr(iaq, param, p)

pname = f"{name}_{'_'.join([iaq.name for iaq in aq])}"
if inhoms is None:
pname = name
else:
pname = f"{name}_{'_'.join([iaq.name for iaq in aq])}"
self.parameters.loc[pname] = {
"layers": layers,
"optimal": initial,
Expand Down

0 comments on commit 6280815

Please sign in to comment.