Repository navigation
Commit dd49934
committed
io.fits: allow limiting the number of read extensions
In the convenience functions only read as many extensions as necessary
to satisfy the users request. This can greatly increase performance when
one is only interested in an early subset of extensions.
It adds the `ext` keyword to the fitsopen function so it will also be
accepted by the top level fits.open function, but this is an
implementational detail and not documented.
Closes astropygh-45891 parent 6aa9a29 commit dd49934
2 files changed
Lines changed: 26 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
756 | | - | |
| 757 | + | |
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
| 524 | + | |
530 | 525 | | |
531 | 526 | | |
532 | 527 | | |
| |||
786 | 781 | | |
787 | 782 | | |
788 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
789 | 800 | | |
790 | 801 | | |
791 | 802 | | |
| |||
820 | 831 | | |
821 | 832 | | |
822 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
823 | 837 | | |
824 | 838 | | |
825 | 839 | | |
| |||
864 | 878 | | |
865 | 879 | | |
866 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
867 | 885 | | |
868 | 886 | | |
869 | 887 | | |
| |||
0 commit comments