-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve support for multiple TODs #205
Conversation
Hi. @nraffuzz and I are finalising the test for this PR. Just a comment that could end up in a small modification of litebirdsim that we can include in this PR. Here from line 115 to line 125, maybe the indentation is not correct: shouldn't these lines be indented out of the for loop? |
Also, here we believe that |
Mmm, I see your point, it might be faster to run the |
Done, now |
First of all, thank you very much.
We were thinking to set different |
I see! That code was something I wrote following my personal style: when running the same code multiple times, I prefer to change the name of the output directory while using the file names (like If you feel that we should provide the user with the ability to pick their own file names, I can add keywords for each of these. But it's possible also to use the parameter So, you could run Madam more than once with the following commands: save_simulation_for_madam(…, components=["wn"], madam_subfolder_name="wn")
save_simulation_for_madam(…, components=["wn", "oof_30mHz"], madam_subfolder_name="wn+1f_30")
save_simulation_for_madam(…, components=["wn", "oof_100mHz"], madam_subfolder_name="wn+1f_100")
# …and so on and the three destriped maps would be saved in
Does it make sense? Or would you prefer to modify |
A small comment before proceeding with the discussion. Is there a motivation for which the keyword added to |
Yes, here the type is |
We tested the version of LB sim for this PR and everything works fine: all the modified modules (make_bin_map, save_simulation_for_madam, ...) work as expected. |
Many modules in the framework directly write into
Observation.tod
, but in simulations it's often the case that we want to save components of the TOD file separately. This PR introduces the "components" keyword to a number of modules:make_bin_map