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

Toast mlmapmaker updates #1053

Merged
merged 19 commits into from
Dec 20, 2024
Merged

Toast mlmapmaker updates #1053

merged 19 commits into from
Dec 20, 2024

Conversation

keskitalo
Copy link
Member

@keskitalo keskitalo commented Dec 4, 2024

Upgrade the TOAST wrapper around the ML mapmaker to support multipass mapmaking and downsampling. Also, add checkpointing capability.

This PR also includes minor tweaks from the MSS3_tweaks branch.

@keskitalo keskitalo requested review from tskisner and amaurea December 5, 2024 21:43
Copy link
Member

@tskisner tskisner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments for consideration.

Thanks for refactoring the obs wrapping, which will be useful for the next steps of wrapping the sotodlib binner.

maxiter = Int(500, help="Maximum number of CG iterations")
maxiter = List(
[500],
help="Maximum number of CG iterations. Use commas to control each pass separately.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change the help string to explicitly say, "List of maximum number of CG iterations for each pass".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Changed.

try:
from . import _helpers as helpers
except ImportError:
import _helpers as helpers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would the relative import fail? We want to make sure we are always importing the _helpers module located in the tests directory, not in other locations.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this modification, I can execute this one unit test individually with python tests/test_mapmaker_pointing.py.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of just doing

python -m unittest tests/test_mapmaker_pointing.py

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted

Address review feedback.
Undo recent change. Use 'python -m unittest' instead.
@keskitalo keskitalo merged commit 6f04c1c into master Dec 20, 2024
3 checks passed
@keskitalo keskitalo deleted the toast_mlmapmaker_updates branch December 20, 2024 00:38
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

Successfully merging this pull request may close these issues.

2 participants