Commit c4ad02b
committed
Simplifications to quiver3d.
- No need to convert input_args to lists: broadcast_arrays will handle
the broadcasting just fine on scalars, and later using np.ravel() will
ensure that the result is at least 1D.
- The assertions don't really add much (and are clearly always true
based on the code just above).
- np.linspace(x, y, 2) is a pretty obfuscated way to write np.array([x,
y]).1 parent da58453 commit c4ad02b
1 file changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2637 | 2637 | | |
2638 | 2638 | | |
2639 | 2639 | | |
2640 | | - | |
2641 | | - | |
2642 | | - | |
2643 | 2640 | | |
2644 | 2641 | | |
2645 | 2642 | | |
2646 | 2643 | | |
2647 | 2644 | | |
2648 | | - | |
| 2645 | + | |
2649 | 2646 | | |
2650 | 2647 | | |
2651 | 2648 | | |
| |||
2655 | 2652 | | |
2656 | 2653 | | |
2657 | 2654 | | |
2658 | | - | |
| 2655 | + | |
2659 | 2656 | | |
2660 | 2657 | | |
2661 | 2658 | | |
2662 | 2659 | | |
2663 | 2660 | | |
2664 | 2661 | | |
2665 | 2662 | | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
2669 | | - | |
2670 | | - | |
2671 | | - | |
2672 | | - | |
| 2663 | + | |
2673 | 2664 | | |
2674 | 2665 | | |
2675 | 2666 | | |
| |||
0 commit comments