Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Error with longer constraint function calls #35

@sparjan

Description

@sparjan

I'm generating a yaml file for my pyDCOP call from an external python file. As a part of this, I'm writing constraints to the file that call functions in the external python file. I have hundreds of variables that I am calling the helper functions with after putting them into a list so that the portion of the yaml file looks like this:

  'constraint1':
    type: intention
    source: ./dcop1.py
    function: source.setConstraint([var1, var 2, ..., var100])

However, I keep getting a syntax error with the source.setConstraint([var1, var 2, ..., var100]) portion that goes away when I only have a few variables in the call. I've even gone as far as to increase the width parameter in my yaml.dump() in the python script, so I'm wondering if there's some other length limit being enforced for these lines in the yaml file?

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