-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subbeamnod routine cannot access plnum #153
Comments
Yes, I think you can test against it. It's a dataset we were considering using as a training example |
I can reproduce this: sdfits = GBTFITSLoad("/home/scratch/jfrothin/testdata/AGBT19B_096_08.raw.vegas")
sbn = sdfits.subbeamnod(scan=18, fdnum=0, plnum=1) Output: File <snip>dysh/fits/gbtfitsload.py:815, in GBTFITSLoad.subbeamnod(self, scan, bintable, **kwargs)
813 df = df[df["IFNUM"].isin([ifnum])]
814 df = df[df["FDNUM"].isin([fdnum])]
--> 815 df = df[df["PLNUM"].isin([plnum])]
816 df_on = df[df["CAL"] == "T"]
817 df_off = df[df["CAL"] == "F"]
UnboundLocalError: cannot access local variable 'plnum' where it is not associated with a value Indeed,
|
After fixing the It appears that this causes an error: sdfits = GBTFITSLoad("/home/scratch/jfrothin/testdata/AGBT19B_096_08.raw.vegas")
sbn = sdfits.subbeamnod(scan=18, fdnum=0, plnum=1) But this does not: sdfits = GBTFITSLoad("/home/scratch/jfrothin/testdata/AGBT19B_096_08.raw.vegas/AGBT19B_096_08.raw.vegas.A.fits")
sbn = sdfits.subbeamnod(scan=18, fdnum=0, plnum=1) The difference being that the former (the path in the original issue) is the path to the SDFITS folder, while the latter is the specific path of a specific bank (as per the example). @mpound Should both of these paths work? i.e. is giving the SDFITS folder path a supported operation? |
I should have attached screenshots of my full code, sorry. I ran dysh from within the folder "/home/scratch/jfrothin/testdata/AGBT19B_096_08.raw.vegas" and did specify the path of the bank:
This code produced the error I reported here. |
Ah okay, then I think I fixed the bug. You can install the updated pip install git+https://github.com/GreenBankObservatory/dysh.git@153-subbeamnod-routine-cannot-access-plnum |
I'm still encountering the issue, but I think that's due to installation problems on my end rather than anything to do with this bug. |
@tchamberlin yes. |
@jfrothingham I had to uninstall
Hope this helps. |
Ah right! You can do it in one command via the pip install -I git+https://github.com/GreenBankObservatory/dysh.git@153-subbeamnod-routine-cannot-access-plnum |
With the uninstall/reinstall, I can now successfully process subbeamnod data with dysh. Thanks all! |
Late to this party, but I do think there is still a potential bug in subbeamnod having to do with the receiver assumption Rcvr26_40, which I got from the GBTIDL implementation. I will work with Pedro to improve my understanding of which Rxs have or historically had polarization capability. |
@mpound currently, only Argus (the 3 mm 16 feed receiver being used for the GBT EDGE survey) has single polarization capabilities. For observations with every other spectral line receiver the data should have at least two polarizations. The Apologies for not explaining that earlier. PS. There is an open item to fix the mislabelling of the Ka receiver feeds. That is also why there is a commented part of the |
…plnum fix issue #153 and its integration test
…plnum fix issue #153 and its integration test
Unable to retrieve a subbeamnod scan because of apparent problems accessing 'plnum'
I've been following the SubBeamNod example (https://dysh.readthedocs.io/en/latest/examples/subbeamnod.html) with a different dataset.
I am using dysh-0.2.0b with Python3.11 on a computer that I think is running RedHat 8. (Thales data reduction machine)
Data is located at /home/scratch/jfrothin/testdata/AGBT19B_096_08.raw.vegas in the Green Bank filesystem.
Here is a screenshot of the error I'm seeing. I get this error regardless of whether I specify kwargs or not, and regardless of which scan I use.
However, sdfits.summary() shows that this scan does have values for PLNUM and FDNUM.
The text was updated successfully, but these errors were encountered: