Skip to content

Port position issue in graphs #17

Description

@gmarthe

Sometimes Inputs ports are drawn to the right et Outputs are drawn to the left instead of the opposite, like in this simple code :

class Pump(Entity):
    
    """ - - - - - - - PORTS - - - - - - - - - - """
    
    water_in = Input(Resources.water, 100)
    water_send = Output(Resources.water, 2)

    
    """ - - - - - - - STATES & TRANSITIONS - - - - - - - - - - """        

    state = current = State()
    
    """ - - - - - - - - - - INFLUENCES - - - - - - - - - - - - """
    
    influ_water_pump = Influence(target = water_send, source = water_in)
    
elk.plot(Pump())

You can see on this pictures the actual and the expected graphs drawn respectively :

actual
expected

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