Skip to content

Steps to build a CSDMS Workbench component #18

Closed

Description

@mdpiper

Here are the steps to build a component for the CSDMS Workbench from a library containing a model or a tool.

To help explain these steps, consider a library foo packaged in a Python module foo that exposes a class Foo.

  1. Wrap the library with a Basic Model Interface (BMI). For the case of the foo library, create a class BmiFoo and include in the foo module or in a separate bmi_foo module.
  2. [Optional, but recommended] Create a conda-forge package for the BMI library. For the foo library, the conda-forge package could be foo or bmi-foo.
  3. Run the babelizer over the BMI library to create a component that can be imported into pymt. Babelizing the BmiFoo class would produce the pymt_foo module exposing the Foo class.
  4. [Optional, but recommended] Create a conda-forge package for the pymt component. For example, pymt_foo.

@mcflugen @gantian127 @gregtucker: Please feel free edit these steps as you see fit, and add any discussion as comments below!

Activity

  1. gregtucker commented on Jan 25, 2021

    @gregtucker

    Nice! How about including links for people to learn about the steps, e.g., (Learn about BMI) <= link to bmi.readthedocs.org, and (Learn how to create a conda-forge package) <= link to whatever pages on conda-forge, etc.

  2. mdpiper commented on Jan 26, 2021

    @mdpiper
    MemberAuthor

    @gregtucker Done! I've added links to docs and examples.

  3. pinned this issue on Feb 1, 2021
  4. unpinned this issue on Apr 12, 2024
  5. transferred this issue fromcsdms/babelizeron Apr 12, 2024
  6. locked and limited conversation to collaborators on Apr 12, 2024
  7. converted this issue into a discussion #19 on Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions