Giter Site home page Giter Site logo

spel-uchile / pypredict Goto Github PK

View Code? Open in Web Editor NEW
53.0 13.0 11.0 29.98 MB

Real-time satellite tracker and orbit propagator

License: GNU General Public License v3.0

Python 99.95% Shell 0.05%
localization tle satellite pypredict gpredict orbit visualization real-time cubesat femto-satellites

pypredict's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pypredict's Issues

QDateTime Error

Hi,

Trying to run python -m pypredict gives the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/dist-packages/pypredict/__main__.py", line 49, in <module>
    main()
  File "/usr/local/lib/python3.10/dist-packages/pypredict/__main__.py", line 44, in main
    application = ApplicationWindow(Sats=Sats)
  File "/usr/local/lib/python3.10/dist-packages/pypredict/app.py", line 78, in __init__
    self.updateTime()
  File "/usr/local/lib/python3.10/dist-packages/pypredict/app.py", line 533, in updateTime
    qdt = QtCore.QDateTime(self.date.year,self.date.month,self.date.day,
TypeError: arguments did not match any overloaded call:
  QDateTime(): too many arguments
  QDateTime(Union[QDateTime, datetime.datetime]): argument 1 has unexpected type 'int'
  QDateTime(Union[QDate, datetime.date]): argument 1 has unexpected type 'int'
  QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], timeSpec: Qt.TimeSpec = Qt.LocalTime): argument 1 has unexpected type 'int'
  QDateTime(int, int, int, int, int, second: int = 0, msec: int = 0, timeSpec: int = 0): argument 6 has unexpected type 'float'
  QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], Qt.TimeSpec, int): argument 1 has unexpected type 'int'
  QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], QTimeZone): argument 1 has unexpected type 'int'

Seconds is calculated as seconds = self.date.second + self.date.microsecond*0.000001 and I guess it ends up being a float instead of an int which is the format QDateTime expects. I fixed the error by wrapping it in an int() call. FYI

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.