Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port position issue in graphs #17

Open
gmarthe opened this issue Jul 19, 2019 · 1 comment
Open

Port position issue in graphs #17

gmarthe opened this issue Jul 19, 2019 · 1 comment

Comments

@gmarthe
Copy link

gmarthe commented Jul 19, 2019

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

@gmarthe
Copy link
Author

gmarthe commented Jul 23, 2019

Things become worse if you try to display your output in level 2 view, as the ports are not linked anymore, they appear at a random side of the entity :
Boilerlevel2

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

No branches or pull requests

1 participant