question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssertionError in izzo library

See original GitHub issue

I got the following:

(f_v0, f_v), = izzo.lambert(Earth_k, r0, r, tof)
File "c:\users\...\site-packages\poliastro\iod\izzo.py", line 44, in lambert
    for v0, v in sols:
AssertionError

I printed the variables: r0=<Quantity [-4396.85721438, 2117.6460576 , 4400.14349892] km>, r=<Quantity [ 4732.15467662, -2279.13443768, -4735.69156808] km>, tof= 30.0 min

Where is the issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Nov 16, 2018

Or you mean, to take into account only first impulse?

That would be one possibility. In Hohmann, the intermediate transfer orbit is not circular either.

If the perigees are the same, is it OK just to find the difference in velocities on perigee as a DV?

Yes!

1reaction
astrojuanlucommented, Nov 15, 2018

Of course, because the vectors are parallel and therefore the Lambert solution cannot be computed:

In [10]: r0
Out[10]: <Quantity [ 4614.01726712,  -954.85167719, -5415.23295728] km>

In [11]: r
Out[11]: <Quantity [ 4614.01726712,  -954.85167719, -5415.23295728] km>

In [12]: np.cross(r0, r)
Out[12]: array([0., 0., 0.])
Read more comments on GitHub >

github_iconTop Results From Across the Web

Library throws AssertionError making my tests fail
After reading through the stacktrace, I noticed that a method in the retsIQ library I am using is throwing an assertion error.
Read more >
Python command fails with AssertionError: wrong color format
Problem You run a Python notebook and it fails with an AssertionError: wrong color format message. An example stack trace: File.
Read more >
Assertion error on using hamcrest library | Rest Assured Forum
Am getting following assertion error: FAILED: test005 java.lang.AssertionError: 1 expectation failed. JSON path items[0].
Read more >
14 Solving common problems functionally - The Joy of Kotlin
This chapter covers: Using assertions; Automatically retry failing functions or effect applications; Reading property files; Adapting imperative libraries to ...
Read more >
AssertionError constructor Null safety - dart:core
API docs for the AssertionError constructor from Class AssertionError from the dart:core library, for the Dart programming language.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found