Skip to content

added masking of rolled spectra to shuffling.#261

Merged
akleroy merged 2 commits intomasterfrom
masking_updates
Aug 28, 2025
Merged

added masking of rolled spectra to shuffling.#261
akleroy merged 2 commits intomasterfrom
masking_updates

Conversation

@akleroy
Copy link
Copy Markdown
Collaborator

@akleroy akleroy commented Aug 28, 2025

Added masking of the "rolled around" channels in Shuffling.

I tested this on M31 and M33 ALMA and IRAM and it looks okay but I think there are some spaces to optimize. In particular I wasn't sure how zip worked on the last step - if it can be relied on to produce a constant size could move the channel grid creation out of the loop and save a bit. I'm sure there's some other cleverness possible too. But it seems to work (but also please check!).

If no one has time I'll just merge and people can shout as they hit bugs. Right now the behavior is bad in master so it's not a huge loss.


# ... also mask the region where the spectrum "wrapped" due to the FFT

max_channel = len(spaxis)*1.0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

float(len(spaxis)) ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes! do it!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

@akleroy akleroy merged commit a530c51 into master Aug 28, 2025
@akleroy akleroy deleted the masking_updates branch September 2, 2025 12:30
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