Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata: design how Python users can generate metadata #1785

Open
davemfish opened this issue Feb 11, 2025 · 0 comments
Open

Metadata: design how Python users can generate metadata #1785

davemfish opened this issue Feb 11, 2025 · 0 comments
Milestone

Comments

@davemfish
Copy link
Contributor

davemfish commented Feb 11, 2025

The metadata feature so far has focused on the Workbench & CLI users. Python API users might want to generate metadata too.

  • Should it happen within execute? maybe as an option?
  • Should there be a more prominent API for it? Right now we have natcap.invest.spec_utils.generate_metadata which has this signature:
def generate_metadata(model_module, args_dict):
    """Create metadata for all items in an invest model output workspace.

    Args:
        model_module (object) - the natcap.invest module containing
            the MODEL_SPEC attribute
        args_dict (dict) - the arguments dictionary passed to the
            model's ``execute`` function.

    Returns:
        None

    """
  • Python API users could also use the geometamaker library directly, but the benefit of having another interface in natcap.invest is to take advantage of data from a MODEL_SPEC in invest.
@davemfish davemfish added this to the 3.15.0 milestone Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant