Skip to content

pyfun run matrix definition option not found #40

@jshields-aero

Description

@jshields-aero

I am working on a pitot inlet case with back pressure as a variable in my run matrix. I make use of a CaseFunction definition in the RunMatrix to set the back pressure in my fun3d namelist:

"Definitions": {
    pb": {
        "Group": false,
        "Type":"CaseFunction",
        "Value":"float",
        "Format": "%05.0f",
        "CompID": ["inlet_bc"],
        "Function": "advCape.SetBackPressure"
}

When I attempt to setup a case, I get two warnings and a KeyError in pyfun.cntl listed bellow:

'pyFun > RunMatrix > Definitions > pb' option 'CompID'
'pyFun > RunMatrix > Definitions > pb' option 'Function'
File "/home/agu/shared/software/python_libraries/cape-2.0.0/cape/pyfun/cntl.py", line 1039, in <listcomp>
    funcs = [self.x.defns[key]['Function'] for key in keys]
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'Function'

Printing out self.x.defns['pb'] prior to the error shows that the dictionary does not include the Function or CompID.

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