Coder Social home page Coder Social logo

Comments (12)

OrbitalMechanic avatar OrbitalMechanic commented on July 19, 2024 1

from orbitdeterminator.

vidhanarya avatar vidhanarya commented on July 19, 2024

python setup.py will install dependencies using 'pip' and for macOS 'pykep' has some issues on installation using pip (at least on Mojave I can confirm that) so what you should do is remove pykep from install_required in setup.py and manually install pykep, which you already did using
conda install pykep.
Here is the screenshot of the working code-

Screenshot 2019-03-14 at 8 50 47 PM

Since you are using python 3.6 you might face error like
TypeError: __init__() should return None, not 'NoneType'
then try downgrading python in conda environment using
conda install python==3.5.2
and install pykep using
conda install pykep==2.1 then do
python setup.py install (with pykep removed from install_required)
Test your setup using pytest command in orbitdeterminator directory

Let us know if this fixes your problem or not :)

from orbitdeterminator.

OrbitalMechanic avatar OrbitalMechanic commented on July 19, 2024

from orbitdeterminator.

vidhanarya avatar vidhanarya commented on July 19, 2024

I think you have installed 'matplotlib' using 'pip', if that is the case then what you can do is if you want a workaround then just uninstall matplotlib using
pip uninstall matplotlib
and install it with conda
conda install matplotlib
then you can just run the program with python main.py
or if you want to fix this problem then install python.app using
conda install python.app
After this you should always use pythonw main.py instead of python
You might need to use an alias such that python = /path/to/pythonw for using pytest which is not recommended, I would have just installed matplotlib using conda. For more details, you can check this answer

from orbitdeterminator.

OrbitalMechanic avatar OrbitalMechanic commented on July 19, 2024

from orbitdeterminator.

vidhanarya avatar vidhanarya commented on July 19, 2024

You need to give a file input with main.py as
python main.py -f /path/to/your/csvFile
For more information refer to orbitdeterminator tutorial here

from orbitdeterminator.

aryadas98 avatar aryadas98 commented on July 19, 2024

RuntimeWarning: invalid value encountered in double_scalars raan = math.acos(np.clip(n[0] / mag_n, -1, 1))

Try running it as python main.py -u m. That will set the unit to metres. (The default file has units in metres)

from orbitdeterminator.

OrbitalMechanic avatar OrbitalMechanic commented on July 19, 2024

from orbitdeterminator.

vidhanarya avatar vidhanarya commented on July 19, 2024

Try using the solution given by @aryadas98 above i.e run python main.py -f /your/file/path -u m because it seems that the csv file you are using needs default unit in meters, also, please attach results of command pytest from the project directory

Note that this is not a universal command, -u flag is used to state units used in your file (which in case of file you have used is meters hence, -u m argument), otherwise, you won't be needing this flag as km is the default value.

from orbitdeterminator.

vidhanarya avatar vidhanarya commented on July 19, 2024

Cool, your setup is running fine 😄

from orbitdeterminator.

OrbitalMechanic avatar OrbitalMechanic commented on July 19, 2024

from orbitdeterminator.

aryadas98 avatar aryadas98 commented on July 19, 2024

Last year this paper was very helpful for me. https://vtechworks.lib.vt.edu/bitstream/handle/10919/49102/Keil_EM_T_2014.pdf

from orbitdeterminator.

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.