Skip to main content

JEDI Configuration Builder

Project description

JEDI Configuration Builder

Repository status:

JCB Tests

Installation

git clone https://github.com/noaa-emc/jcb
cd jcb

# Optional step if you want to run the client integration tests
./jcb_client_init.py  # May first require `pip install pyyaml` if it is not available

pip install --prefix=/path/to/where/you/want/installed .

# Run the tests
pytest

Description

How to use from the command line:

jcb render dictionary_of_templates.yaml jedi_config.yaml

The below shows two examples of calling jcb from a python client. In each case you have to provide a dictionary that describes all the ways that you want to render the templates in the contained JEDI YAML files.

First jcb provides a convenient single line call passing in the dictionary of templated and getting back the dictionary. The dictionary of templates has to contain an algorithm key telling the system which JEDI algorithm you want to run.

import jcb

jedi_config_dict = jcb.render(dictionary_of_templates)

For situations where you wish to create YAML files for several algorithms using the same dictionary of templates you can access the class directly.

import jcb

jcb_obj = jcb.Renderer(dictionary_of_templates)
jedi_dict_2_a = jcb_obj.render('hofx4d')
jedi_dict_2_b = jcb_obj.render('variational')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jcb-0.0.5.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jcb-0.0.5-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file jcb-0.0.5.tar.gz.

File metadata

  • Download URL: jcb-0.0.5.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jcb-0.0.5.tar.gz
Algorithm Hash digest
SHA256 eecb8452a936d63f068d8f977c85c37da0b6c029e5c3a8edf821226415ae9bdd
MD5 fa7f2c07f8969788c179b5333f7f89e5
BLAKE2b-256 c2f836e580cb94093d8ad2e7bfc96c092e692f106dc73ed9c6c2f13bac0d6d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for jcb-0.0.5.tar.gz:

Publisher: release.yaml on NOAA-EMC/jcb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jcb-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: jcb-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jcb-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d93ff7d1dbedf4b17938e67e83b3ab021f7346568e96ee963eddee4e807ee8
MD5 30d42da930a7939cbd259a6f8a7840fd
BLAKE2b-256 482e6884abf06be1c79967627348c30addb948fb0ff5279d6c315359a791fc0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jcb-0.0.5-py3-none-any.whl:

Publisher: release.yaml on NOAA-EMC/jcb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page