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

Error with longer constraint function calls #35

Open
sparjan opened this issue Sep 23, 2021 · 0 comments
Open

Error with longer constraint function calls #35

sparjan opened this issue Sep 23, 2021 · 0 comments

Comments

@sparjan
Copy link

sparjan commented Sep 23, 2021

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant