Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[CLN] Remove legacy backend and unused code
Eliminated "aesara" and "legacy" backends from the config and compute logic. Cleaned up redundant code, improving codebase maintainability and clarity by focusing on supported backends.
  • Loading branch information
Leguark committed May 25, 2025
commit 8892a279a3a36c755772daa76b824a9ef030648b
9 changes: 0 additions & 9 deletions gempy/API/compute_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def compute_model(gempy_model: GeoModel, engine_config: Optional[GemPyEngineConf
data_descriptor=gempy_model.input_data_descriptor,
geophysics_input=gempy_model.geophysics_input,
)

case AvailableBackends.aesara | AvailableBackends.legacy:
gempy_model.legacy_model = _legacy_compute_model(gempy_model)
case _:
raise ValueError(f'Backend {engine_config} not supported')

Expand Down Expand Up @@ -189,9 +186,3 @@ def _check_convergence_criterion(conditional_number: float, condition_number_old
return geo_model.solutions


def _legacy_compute_model(gempy_model: GeoModel) -> 'gempy_legacy.Project':
gpl = require_gempy_legacy()
legacy_model: gpl.Project = gempy3_to_gempy2(gempy_model)
gpl.set_interpolator(legacy_model)
gpl.compute_model(legacy_model)
return legacy_model