Skip to content

Commit eaa2916

Browse files
authored
Bugfix for old method of selecting layers (#92)
If you have multiple layers in the layer description (e.g.:
1 parent aca247e commit eaa2916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttim/fit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def set_parameter(
9696
from_lay = int(layers_from_name[0])
9797
to_lay = from_lay + 1
9898
elif len(layers_from_name) == 2:
99-
from_lay, to_lay = layers_from_name
99+
from_lay, to_lay = map(int, layers_from_name)
100100

101101
# get aquifer information and create list if necessary
102102
if inhoms is None:

0 commit comments

Comments
 (0)