Skip to content

Mosaic pipeline, resample (possibly other steps) expect ModelLibrary products have a name #2214

@braingram

Description

@braingram

Passing a list of filenames to MosaicPipeline results in a KeyError due to this assumption.

Where:

Resample (and possibly other steps) has similar code:

if "name" in input_models.asn["products"][0]:
output_filename = input_models.asn["products"][0]["name"]

but that looks to be guarded with an appropriate if check.

FWIW the association schema does not require "name":

"products": {
"description": "Array of output products and their required inputs derived from this association.",
"type": "array",
"items": {
"type": "object",
"required": ["members"],

so in this case stpipe is producing what looks like a valid association.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions