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

Fix the way the mapmaker handles signals #182

Merged
merged 7 commits into from
Jul 15, 2022
Merged

Fix the way the mapmaker handles signals #182

merged 7 commits into from
Jul 15, 2022

Conversation

ziotom78
Copy link
Member

@ziotom78 ziotom78 commented Jul 7, 2022

This PR modifies _Toast2FakeCache so that it performs deep copies even when Signal.copy() is called.

@paganol
Copy link
Member

paganol commented Jul 7, 2022

Hi @ziotom78 @giuspugl @sgiardie, currently baseline_lenght is interpreted as the number of consecutive samples in a baseline. Digging in toast, it seems that it is actually the length in seconds. @giuspugl, do you confirm this?

@giuspugl
Copy link
Collaborator

giuspugl commented Jul 7, 2022

Hi @ziotom78 @giuspugl @sgiardie, currently baseline_lenght is interpreted as the number of consecutive samples in a baseline. Digging in toast, it seems that it is actually the length in seconds. @giuspugl, do you confirm this?

I confirm that it should be the length in seconds !

paganol and others added 2 commits July 7, 2022 22:19
This change will make calls to `destripe` clearer even without having to look at the documentation.
@ziotom78
Copy link
Member Author

ziotom78 commented Jul 8, 2022

Hi, I have renamed baseline_length to baseline_length_s. It's a breaking change, but it makes the code far easier to read:

    params = lbs.DestriperParameters(
        nside=16,
        baseline_length_s=100,
        return_destriped_map=True,
    )

I have updated @sgiardie 's notebook accordingly, but I fear that there will be changes to be made in the production scripts. Do you think this is reasonable to do?

@ziotom78
Copy link
Member Author

@paganol , @sgiardie , what do you think about the breaking change? I would be in favor of implementing it and releasing 0.6.0, as in this way the simulation production will have a self-explaining code.

@sgiardie
Copy link
Contributor

@paganol , @sgiardie , what do you think about the breaking change? I would be in favor of implementing it and releasing 0.6.0, as in this way the simulation production will have a self-explaining code.

Hi @ziotom78 , sorry for the late reply. I think it is a reasonable change, and also not so impacting on the production scripts (it would require just to rename that variable, I guess)

@ziotom78
Copy link
Member Author

(it would require just to rename that variable, I guess)

Yes, that's right, it's something you can do automatically if you use an IDE like PyCharm or Spyder.

I'll draft release v0.6.0 then, instead of v0.5.1, as this is a breaking change.

@ziotom78
Copy link
Member Author

I'll draft release v0.6.0 then, instead of v0.5.1, as this is a breaking change.

Wait, I just realized that we can keep baseline_length as well but mark it as «deprecated». In this way we can release 0.5.1 as planned.

@ziotom78
Copy link
Member Author

Wait, I just realized that we can keep baseline_length as well but mark it as «deprecated». In this way we can release 0.5.1 as planned.

Mmm, no, deprecating a field of a dataclass is not trivial and I fear to complicate the code too much for little gain.

Sorry for the noise.

@ziotom78 ziotom78 merged commit 8ca0c4a into master Jul 15, 2022
@ziotom78 ziotom78 deleted the mapmakerfix branch July 15, 2022 08:19
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.

4 participants