Skip to content
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

Invalid index error related to scan numbers #33

Closed
ulricharmel opened this issue Apr 21, 2020 · 4 comments
Closed

Invalid index error related to scan numbers #33

ulricharmel opened this issue Apr 21, 2020 · 4 comments

Comments

@ulricharmel
Copy link

ulricharmel commented Apr 21, 2020

(shadems) ulrich@jake:/net/tina/vault-tina/ulrich/MeerKAT-rooibos/plots-shadems$ shadems --xaxis FREQ,CHAN --yaxis DATA:amp,DATA:amp ../1558752655_sdp_l0.full_1284.full_pol-4C12_02_corr.ms
2020-04-21 14:11:57 - INFO - /home/ulrich/venv/shadems/bin/shadems --xaxis FREQ,CHAN --yaxis DATA:amp,DATA:amp ../1558752655_sdp_l0.full_1284.full_pol-4C12_02_corr.ms
2020-04-21 14:11:57 - INFO - ------------------------------------------------------
2020-04-21 14:11:57 - INFO - : MS ../1558752655_sdp_l0.full_1284.full_pol-4C12_02_corr.ms contains 2624832 rows
2020-04-21 14:11:57 - INFO - : (1, 1024) spectral windows and channels
2020-04-21 14:11:57 - INFO - : 1 fields: 4C12.02
2020-04-21 14:11:58 - INFO - : 12 scans, first #2, last #31
Traceback (most recent call last):
File "/home/ulrich/venv/shadems/bin/shadems", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/home/ulrich/venv/shadems/shadeMS/bin/shadems", line 8, in
main.main([a for a in sys.argv[1:]])
File "/home/ulrich/venv/shadems/shadeMS/ShadeMS/main.py", line 285, in main
ms = sms.ms = MSInfo(options.ms, log=log)
File "/home/ulrich/venv/shadems/shadeMS/ShadeMS/ms_info.py", line 82, in init
self.scan = all_scans.get_subset(scan_numbers)
File "/home/ulrich/venv/shadems/shadeMS/ShadeMS/ms_info.py", line 30, in get_subset
return NamedList(self.label, [self.names[x] for x in subset], subset)
File "/home/ulrich/venv/shadems/shadeMS/ShadeMS/ms_info.py", line 30, in
return NamedList(self.label, [self.names[x] for x in subset], subset)
IndexError: list index out of range

I get the above error which I am suspecting is related to the scan numbers in this ms which are [2, 36, 6, 40, 10, 44, 14, 48, 19, 23, 27, 31]
Here is the branch I used: https://github.com/IanHeywood/shadeMS/tree/harlequin

@o-smirnov
Copy link
Collaborator

Yep, you're right, there was a sort operation missing.

Could you please try the fourth-wall branch now?

@ulricharmel
Copy link
Author

I am getting a different error now
Traceback (most recent call last):
File "/home/ulrich/venv/shadems/bin/shadems", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/home/ulrich/venv/shadems/shadeMS/bin/shadems", line 6, in
from shade_ms import main
File "/home/ulrich/venv/shadems/shadeMS/shade_ms/main.py", line 23, in
from . import data_plots, data_mappers
File "/home/ulrich/venv/shadems/shadeMS/shade_ms/data_plots.py", line 232, in
class extract_multi(datashader.reductions.category_values):
AttributeError: module 'datashader.reductions' has no attribute 'category_values'

@o-smirnov
Copy link
Collaborator

o-smirnov commented Apr 21, 2020 via email

@ulricharmel
Copy link
Author

It is running now. I have screened it. I will check the result in the morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants