Menu Degelmann Solutions DeltaRecon documentation v0.2.0
DeltaRecon product page

Stage 4 · Connect your engine

What your engine must provide

What a calculation engine must be able to give so that DeltaRecon can work with it, what you build to connect it, and how large that connection is for the reference model.

  1. exists

    DeltaRecon

    comparison · walk · search

    protocol

  2. you build

    Your connection

    the adapter, in Python

  3. exists, unchanged

    Your engine

    with the history of its releases

What your engine must be able to answer

  1. The ids of all model pointsmodel_point_ids

  2. A projection per model pointproject

  3. The parametersparameters

  4. The time basistime_basis

  5. The quantitiesquantities

What has to be built

What the engine says about itself

  1. The stages it supports, with their quantitiesstages

  2. The kinds of change it can applyrealisations

  3. What one revision fixesdetermines

  4. What it can hold while revisions are appliedholdable

What the engine can do

  1. Find the folder of its historiesrepositories_folder

  2. Check that a release can be restoredresolve

  3. Describe a release by its revisiondescribe

  4. Name the revision of the input datainput_revision

  5. Open a release for a runopen

  6. List the revisions between two releaseshistory

  7. Name the state after a revisionstate_release

What an opened release can do

  1. Give the ids of its model pointsmodel_point_ids

  2. Project one model pointproject

  3. Give its parametersparameters

  4. Project several model points at onceproject_many

    optional
  5. Project a target onlyproject_target

    optional

How large is that?

Yardstick

1,170 lines in one file

degelmann/deltarecon/engines/reference_model.py lines 871 to 876 · v0.2.0
    def model_point_ids(self) -> list[str]:
        with _readable_formula_errors():
            return [str(value) for value in self._points()[MODEL_POINT_ID_COLUMN]]

    def project(self, model_point_id: str) -> list[tuple[int, list[float]]]:
        return self._project_index(self._index(model_point_id))

How DeltaRecon finds your engine

  1. The option of the command--engine <module>:<class>

  2. The environment variableDELTARECON_ENGINE

  3. Neither

Windows PowerShell

.\deltarecon.cmd <command> --engine <module>:<class> --engine-path <folder>

Linux

./deltarecon <command> --engine <module>:<class> --engine-path <folder>