Skip to content

No UnbndGenerator #20

@slegare2

Description

@slegare2

Any time I wanted to include an Unbinding interaction, I got the error

File "/home/slegare/ENS/venv_meta_update/lib/python3.6/site-packages/kami-1.2-py3.6.egg/kami/hierarchy.py", line 851, in add_interaction
    nugget, nugget_type = generate_from_interaction(self, interaction)
TypeError: 'NoneType' object is not iterable

I fixed this by adding the following at line 925 of generators.py

elif isinstance(interaction, Unbinding):
        gen = BndGenerator(hierarchy)
        return gen.generate(interaction)

It works since BndGenerator already sets the "test" parameter to False if the object is not an instance of Binding.
I am confused why this bug occured, since Unbindings were working properly in the past ?
If this fix is ok with you, I can push it.

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