Git Product home page Git Product logo

Comments (2)

sarahtattersall avatar sarahtattersall commented on August 20, 2024

Hi,

Thanks for flagging this as an issue.

On further inspection of the code you might notice that the models (since pipe claims to be mvc) aren't really used and that the entire analysis of petri nets is based on the views. Furthermore in the views there is some bizarre logic dotted around (such as incrementing x and y by 5 in some places) that is likely causing these and a range of other potential bugs.

I'm currently working on a revamp of the underlying system so that it actually uses models under the hood. As you can imagine this is a large feat but I hope to have a realease out for Christmas time that will address this issue amongst several others!

I hope in the mean time that this issue does not trouble you too much.

Sent from Samsung Mobile

-------- Original message --------
From: dylankiss [email protected]
Date:
To: sarahtattersall/PIPE [email protected]
Subject: [PIPE] Arcs change coordinates on loading a previously saved net (#15)

I create a Petri Net and make arcs perfectly aligned with the grid. I save the file, reopen it and the intermediate points of the arcs have slightly shifted. Every time I save the file again and reopen it, the arcs are shifted more and more. An example is given below:

[1st]https://f.cloud.github.com/assets/5985577/1578135/ef6e21b6-5175-11e3-97c8-9645614f0363.PNG
Original net
[2nd]https://f.cloud.github.com/assets/5985577/1578136/f646367c-5175-11e3-9e52-03db6af73c5e.PNG
After saving and opening the first time
[3rd]https://f.cloud.github.com/assets/5985577/1578141/fc18e4c8-5175-11e3-80c9-c031d390d693.PNG
After saving and opening the second time
[4th]https://f.cloud.github.com/assets/5985577/1578142/fe88e1ea-5175-11e3-98c3-6dc19e6d2895.PNG
After saving and opening the third time
[5th]https://f.cloud.github.com/assets/5985577/1578143/011776ba-5176-11e3-8dd9-6088c2581620.PNG
After saving and opening the fourth time
[10th]https://f.cloud.github.com/assets/5985577/1578144/038b0452-5176-11e3-83f7-ff9fe6750a40.PNG
After saving and opening the nineth time

The problem probably lies in the opening of the net, because when I save the original net, the coordinates in the XML file look fine. When I open it again, the lines seem slightly shifted.

What I also noticed is that in the XML file, the coordinates of arcs are given as integers, while the coordinates of places and transitions are given as floats. Maybe this has something to do with the shifting?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15.

from pipe.

sarahtattersall avatar sarahtattersall commented on August 20, 2024

This has been fixed in beta release of PIPE 5

from pipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.