Contribute a method

Presto is built so that new reconstruction methods can be added as their authors contribute them, and then run on the same compilations and compared with the methods already on the platform. In the common case, adding a method needs no changes to the Presto server: you provide a container, a configuration file and one entry in the method registry.

1. Get in touch first

Before you start, contact the Presto team so that we can help you plan the integration and review your contribution: email Nick McKay (nick@nau.edu) or open an issue in the Presto server repository. Tell us about the method, the language it is written in, the proxy data it uses and the parameters a user should be able to set.

2. What you provide

  • A container that bundles your code, its dependencies and its runtime, reads a parameter file (YAML or JSON) and writes its results to a known directory. Your software must be redistributable in a public container: code that needs a commercial license, such as MATLAB, has to be translated to an open-source language or compiled into a standalone application first.
  • A GitHub template repository created from presto-template, which already contains the workflows that run your container when a user submits a reconstruction, publish the results and update the repository's README. Follow its ADAPTING.md; existing methods such as LMR, Holocene DA and BayGMST are working examples.
  • A configuration file that defines the parameters your method exposes to users, from which Presto generates the parameter form in the Custom Reconstruction Engine, and, if your method does not read the standard Presto configuration, a lookup table or translation function that maps the form to the format your code expects.
  • One entry in the method registry (presto/reconRegistry.json in the Presto server), which names your method, its container and template repository, and the defaults for the data query page.

3. Testing and promotion

You submit the form, configuration and registry entry as a pull request to the Presto server. A new method first appears under New methods, in testing in the Custom Reconstruction Engine, where you can run it end to end with your own GitHub account. Once it has completed real runs, its output has been checked by a maintainer, and its container and citation are final, a separate small pull request moves it into the main list of reconstructions.

The full technical instructions, including the registry fields and the commands that regenerate the derived files, are in Adding a reconstruction method in the Presto server repository.