Skip to content

3.0.0

Bug Fixes🍋

Issue Ref Summary Description
493 Anamorphosis with shared Gaussian scores Anamorphosis no longer fails when distinct values get the same Gaussian score, which happens with floating-point twins (0.05 and 0.04999999999999996) or tail values above 100,000 samples. Values sharing a score are replaced by their mean, with a warning when they differ by more than floating-point noise. Results are unchanged for inputs that already worked.
[No Ref] Hermite approximation error hermite_coefficients_piecewise_linear(..., error=True) no longer crashes, returns a (coefficients, error) tuple and computes the error correctly for the CONSTANT extension.
[No Ref] gauss_scores with NaN data Gaussian scores given to Anamorphosis for data containing NaN are dropped along with the NaN instead of being misaligned. Scores of the wrong size raise a ValueError.
491 LocalisedUniformConditioning panic on SMUs without neighbors solve no longer panics with user-provided comparison function does not correctly implement a total order when some SMUs of a kriged panel have no sample in their search neighborhood. Those SMUs are ranked last and their grade is left NaN, and a UserWarning reports how many there are, suggesting a wider neighborhood or a lower minimum number of samples.
[No Ref] LocalisedUniformConditioning.solve can run again on the same panel A second solve on the same panel support no longer fails with ore_prop_above_... already exists. Cut-off properties are created on the first call and then only updated inside panel_support_region, like the estimate, so solve can also run region by region. Two runs with different support_attribute no longer overwrite each other's cut-off properties.
[No Ref] Kriging mode=ADVANCED and mode=DEBUG OrdinaryKriging.solve and SimpleKriging.solve with mode=KrigingMode.ADVANCED or KrigingMode.DEBUG no longer fail with setting an array element with a sequence. Outputs of the Rust solvers are now read by name instead of by position, so they get the same properties as in GeoLime 2.x (_lagrange, _negative_weights, _avg_dist, _min_dist, _sample_number, _dh_number, and in DEBUG the per-block means of the neighbors' weights, indices, distances and kriging matrix). Kriging, IDW and nearest neighbor results are unchanged in NORMAL mode.
[No Ref] Kriging with NeighborhoodAllPoints and a search ellipsoid ran out of memory Each Rust worker allocated its kriging system for every data point at once, which at 100,000 data took 327 s and 37.6 GB. Buffers now start small and grow with the neighbors actually found: the same case runs in 0.15 s with 86 MB. Results are unchanged.
[No Ref] Rust solvers read NumPy inputs in place Compositing, desurveying, experimental variogram and per-category neighborhoods kept a view on the NumPy arrays given to them instead of a copy. Writing to such an array between construction and solve changed results, and could hang the experimental variogram. Inputs are now copied, and non-contiguous arrays are accepted.
492 Solid.contains dropped points just inside the wall Up to 2.6.x, coordinates were cast to float32, which rounds projected coordinates to several centimetres. Since 2.7.0 they stay float64 in a local frame. contains now also passes the tolerance-free signed distance method explicitly, and a regression test covers points 3 cm on either side of the wall. compute_block_proportion_inside_solid no longer removes an existing in_<solid name> region.
[No Ref] No more pandas inplace deprecation warnings pandas 3.1 deprecates the inplace keyword (PDEP-8) and emits a Pandas4Warning on every call that uses it. GeoLime no longer uses inplace=True with pandas, so setting properties or regions, removing data and loading drillholes no longer warn. validate_tables no longer reorders the input collar and survey DataFrames.

Enhancements🍋

Issue Ref Summary Description
410 Python 3.14 GeoLime now supports CPython 3.11–3.14.
444 Rust-only solvers Kriging, IDW, nearest neighbor, SGS, LUC, experimental variogram, compositing, and cell declustering always run on the Rust backend.
452 Plotly 7 Interactive maps and image export use Plotly 7 and Kaleido 1.3.
452 GIS I/O via pyogrio Shapefile and GeoJSON writes, and DXF reads, use the pyogrio engine.
[No Ref] Multi-threading always on cell_declustering, experimental variogram, desurveying, numerical and categorical compositing are now always calling the multi-threaded version (was single-thread by default)
411 Compatible pandas 3.x GeoLime is now pandas 3.x by default and backward compatible with pandas 2.3+
494 is_inside() and region name for contains() New GeoRefObject.is_inside(solid), the reverse of solid.contains(obj). Both take an optional region_name argument (defaults to in_<solid name>).
[No Ref] Rust solvers release the GIL Kriging, IDW, nearest neighbor, SGS, LUC, experimental variogram, compositing, desurveying and cell declustering release the Python GIL while they compute, so other Python threads (a GUI, a progress bar, another solver) keep running.
[No Ref] Rank-based Gaussian scores gauss_score and Anamorphosis compute Hazen rank scores norm.ppf((rank - 0.5) / n) by default, the plotting position of the GSLIB nscore program. Tied values share their average rank and NaN keep a NaN score. The new GaussScoreMethod enum (gauss_score(method=...), Anamorphosis(gauss_score_method=...)) selects them (RANK) or the scikit-learn quantile transform of GeoLime 2.x (QUANTILE_TRANSFORM). Rank scores stay within ±norm.ppf(1 - 0.5 / n), e.g. ±3.29 for 1,000 values, and the anamorphosis is constant beyond them. The API documentation of the anamorphosis module describes both methods and their tails.
[No Ref] Declustered Gaussian scores gauss_score(z, weights=...) and Anamorphosis(..., weights=...) take declustering weights, e.g. from cell_declustering. Each value gets the middle of its step of the weighted cumulative distribution, norm.ppf((W_before + w_i / 2) / W) as in GSLIB nscore, so the anamorphosis reproduces the declustered mean and variance. Weights may match the data or only its valid values (as cell_declustering returns them). Without weights, results are unchanged. Weights are only available with GaussScoreMethod.RANK.

⚠ Breaking changes🍋

Minimal versions

  • Python 3.10 is no longer supported; the minimum runtime is Python 3.11.
  • The SciPy < 1.18 cap is lifted (>= 1.11, < 2).
  • Pandas requires >= 2.3.3, < 4 (pandas 3 is allowed; 2.3.3 stays the minimum).
  • Pandera requires >= 0.30 so pandas 3 can be installed. Pandera 0.30 still supports pandas 2.3.
  • Minimum versions are raised for published CVEs:
    • pyarrow >= 23.0.1 (CVE-2023-47248, CVE-2024-52338, CVE-2026-25087)
    • geopandas >= 1.1.4 (CVE-2025-69662)
    • scikit-learn >= 1.8.0 (CVE-2024-5206)
    • pynacl >= 1.6.2 (CVE-2025-69277)
    • pyproj requires >= 3.5.0 because GeoPandas 1.1 does.

API Changes * rust_multithread is removed : cell declustering, experimental variogram, desurveying, compositing, and variogram maps always run the parallel Rust solvers. * The Julia backend and the julime package are removed. num_threads_julia(), get_julime(), and GeostatsBackend no longer exist. The public backend= argument is gone from solvers and helpers: Rust is now the only backend. * LINEAR desurveying still works and still uses the Python implementation internally. Minimum curvature and tangential always use Rust. * Python fallbacks for cell declustering, compositing, experimental variogram, and non-LINEAR desurveying are gone. Overlapping or non-contiguous variogram lags always get recalculated tolerances. * pydantic and the @check_type decorator are removed.

Runtime changes

  • Localised uniform conditioning names its cut-off properties after support_attribute and a rounded cut-off: {support_attribute}_ore_prop_above_{cutoff} and {support_attribute}_metal_above_{cutoff}, where {cutoff} has 6 significant digits, no trailing zeros, _ for . and neg for a leading -. Cut-off grades that give the same name raise a ValueError.

    # Before (support_attribute="Fe_LUC", cutoff_grades=[2.0, 1.960630429635252])
    panel.data("ore_prop_above_2_0")
    panel.data("metal_above_1_960630429635252")
    
    # After
    panel.data("Fe_LUC_ore_prop_above_2")
    panel.data("Fe_LUC_metal_above_1_96063")
    
  • Gaussian scores, hence anamorphosis, Hermite coefficients and localised uniform conditioning results, change: gauss_score and Anamorphosis use rank scores by default instead of the scikit-learn quantile transform. The quantile transform always mapped the data minimum and maximum to ±5.2 whatever the sample size and compressed the scores of the most extreme 0.1% of the data, which biased the variance of the Hermite expansion of skewed data and therefore the change of support coefficient. For lognormal samples with a log standard deviation of 1 the variance was 3% to 27% too low with 1,000 values and 30% to 300% too high with 1,000,000 values. Rank scores keep it within 4% of the data variance from 1,000 values on. Pass gauss_score_method=GaussScoreMethod.QUANTILE_TRANSFORM to Anamorphosis (or method= to gauss_score) to reproduce GeoLime 2.x results:

    anamorphosis = geo.Anamorphosis(
        data,
        coefficient_number=50,
        gauss_score_method=geo.GaussScoreMethod.QUANTILE_TRANSFORM,
    )
    
  • Localised uniform conditioning leaves NaN the SMUs that have no sample in their search neighborhood inside a kriged panel. The Julia backend gave them the panel's highest grades. Every other SMU keeps the same grade.

  • With pandas 3, text columns use the pandas str dtype instead of NumPy object. Missing values stay NaN. Region and property expression syntax is unchanged. On pandas 2.3, text columns stay object.
  • Autofit constraint errors now raise ValueError.
  • Fiona is replaced by pyogrio.
  • strenum and toml are replaced by the standard library (enum.StrEnum, tomllib) plus tomli-w for writes.
  • Plotly is now at v7 : map figures use layout.map and MapLibre traces (Scattermap, Choroplethmap) instead of layout.mapbox. Kaleido 1 needs a system Chrome or Chromium to export static images. Example:

    # Before
    fig = make_subplots(specs=[[{"type": "mapbox"}, {"type": "mapbox"}]])
    fig.update_layout(mapbox1=trace.layout.mapbox)
    fig.add_choroplethmapbox(...)
    
    # After
    fig = make_subplots(specs=[[{"type": "map"}, {"type": "map"}]])
    fig.update_layout(map=trace.layout.map)  # second panel is layout.map2
    fig.add_choroplethmap(...)