Describe the bug
When using getfs and the keyword scan, the resulting ScanBlock still contains all the available scans irrespective of the scan selection.
How to Reproduce
from dysh.fits import GBTFITSLoad
filename = "/home/dysh/example_data/frequencyswitch/data/TREG_050627/TREG_050627.raw.acs/"
sdf_fs = GBTFITSLoad(filename)
fs_scan = sdf_fs.getfs(scan=90, ifnum=0, plnum=0)
print(f"Number of FS scans: {len(fs_scan)}")
Number of FS scans: 5
Describe the bug When using
getfs
and the keywordscan
, the resultingScanBlock
still contains all the available scans irrespective of the scan selection.How to Reproduce
It should be 1.
Environment