Giter Club home page Giter Club logo

rfi-loc's People

Contributors

riyagori1203 avatar shriharshtendulkar avatar

Watchers

 avatar  avatar

rfi-loc's Issues

Position saving and printing is not working properly.

After identifying and selecting multiple intersections I clicked on the "Save Positions" button. The output.txt file has only the output from the last source selected source 14.

output.txt

source 14 ['24', '25', '32', '43', '22', '42', '70', '8', '20', '41', '19', '40', '21', '16', '33', '54', '55', '35', '44', '51', '52', '5', '39', '49', '4', '50', '6', '10', '11', '69', '9', '18', '29', '56', '73', '26', '27']position: 597.97 14.85

The delay_ids get appended to the list without clearing.

The output on the terminal looks fine:

source 1 -> ['24', '25', '32', '43']
position: 374.57 , 248.19
source 2 -> ['22', '42', '70']
position: 704.27 , -1121.83
source 3 -> ['8', '20', '41']
position: 103.49 , 218.0
source 4 -> ['19', '40']
position: 82.25 , 202.55
source 5 -> ['21']
position: 117.0 , 239.23
source 6 -> ['16', '33', '54', '55']
position: 2212.03 , 3332.09
source 7 -> ['35', '44', '51', '52']
position: 3548.95 , 2856.45
source 8 -> ['5', '39', '49']
position: -963.04 , 1831.8
source 9 -> ['4', '50']
position: -984.5 , 1855.94
source 10 -> ['6']
position: -938.89 , 1826.43
source 11 -> ['10', '11', '69']
position: 548.87 , -1509.7
source 12 -> ['9', '18']
position: 521.07 , -1470.78
source 13 -> ['29', '56', '73']
position: -743.56 , 3704.59
source 14 -> ['26', '27']
position: 597.97 , 14.85

The expected behaviour is that the Save Positions Button will save all the previously identified sources in one shot. Not one at a time.

  • Add a variable/list that holds the existing intersections and delay_ids from mouse clicks.
  • Reconfigure save_pos to save all of them in one go.
  • Open output.txt for overwriting not for appending.

Remove global variables

There is no need for global variables in this code.

Redo parts of canvas.py that use global variables.

Code refactoring and cleanup

  • Divide the code into sections that are automatically generated from QT UI generator and the ones that are modified manually.
  • Preferably separate the autogenerated code into a separate file that is imported into the main file.

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.