You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The np.linspace function seems to have changed to require an int input not a float input. For a quick fix, you can cast the inputs on lines 136, 222, 262 of orbital/plotting.py to fix this problem.
e.g. on line 136 change: f = np.linspace(f1, f2, num_points)
to f = np.linspace(f1, f2, int(num_points))
From example a code snippet taken-
orbit1 = KeplerianElements.with_period(90 * 60, body=earth) plot(orbit1,title='orbit1') plt.show()
Showing Error
**<array_function internals> in linspace(*args, **kwargs)
/usr/local/lib/python3.7/dist-packages/numpy/core/function_base.py in linspace(start, stop, num, endpoint, retstep, dtype, axis)
118
119 """
--> 120
121
122 div =(num - 1) if endpoint else num
TypeError: 'float' object cannot be interpreted as an integer**
The text was updated successfully, but these errors were encountered: