diff --git a/map2loop/m2l_map_checker.py b/map2loop/m2l_map_checker.py index af7a51a..0c8138a 100644 --- a/map2loop/m2l_map_checker.py +++ b/map2loop/m2l_map_checker.py @@ -449,9 +449,9 @@ def check_geology_map( geology[c_l["o"]] = geology.index # Check if some id values are blank and set appropriately elif len(geology[~geology[c_l["o"]].isnull()]) != len(geology): - vals = geology[geology[c_l["o"]].astype(str).str.isnumeric()][ - c_l["o"] - ].astype(int) + vals = geology[ + geology[c_l["o"]].astype(str).str.replace(".", "", 1).str.isdigit() + ][c_l["o"]].astype(int) next_index = int(np.nanmax(vals)) + 1 for ind, layer in geology.iterrows(): if pd.isna(layer[c_l["o"]]):