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

read_list_of_observations does not distribute all the information across mpi tasks #314

Open
paganol opened this issue Apr 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paganol
Copy link
Member

paganol commented Apr 11, 2024

I'm using lbs.read_list_of_observations to read a bunch of observations. Something like this:

components = ['tod_wn_1f_30mHz'] 
observations = lbs.read_list_of_observations(
    file_name_list = [path_tod+'LB_'+telescope+'_'+freq+'_obs_rank'+str(i).zfill(4)+'.hdf5' for i in list_of_tods_per_tasks],
    limit_mpi_rank = False,
    tod_fields = components,
    )

I can read the observations and everything seems ok. Then when I try to collapse the tods in maps, lbs.make_bin_map fails and the issue seems to be related to the fact that obs.det_idx is empty in ranks ≠ 0 and, as a consequence, obs.n_detectors fails.

See here.
When I print:

print(rank,obs.det_idx,list_of_tods_per_tasks)

This is what I get:

1 None [2 3]
0 [ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23] [0 1]
@paganol paganol added the bug Something isn't working label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant