Skip to content

Allow slicing FlatSkyMap objects along one dimension#225

Merged
arahlin merged 3 commits into
masterfrom
flatsky_1d_slice
Jul 14, 2026
Merged

Allow slicing FlatSkyMap objects along one dimension#225
arahlin merged 3 commits into
masterfrom
flatsky_1d_slice

Conversation

@arahlin

@arahlin arahlin commented Jun 23, 2026

Copy link
Copy Markdown
Member

Slicing into a FlatSkyMap object along both dimensions returns a new map object with the same coordinate system. This PR also enables slicing along only one of the two dimensions, in which case the returned map object has length 1 along the other dimension. This behavior previously raised an error.

Slicing into a FlatSkyMap object along both dimensions returns a new map object
with the same coordinate system.  This PR also enables slicing along only one of
the two dimensions, in which case the returned map object has length 1 along one
the other dimension.  This behavior previously raised an error.
@arahlin
arahlin requested a review from tcrawfor June 23, 2026 16:32
@arahlin arahlin self-assigned this Jun 23, 2026

@tcrawfor tcrawfor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems to work as advertised, thanks.

@arahlin
arahlin merged commit 2d6a59a into master Jul 14, 2026
2 checks passed
@arahlin
arahlin deleted the flatsky_1d_slice branch July 14, 2026 00:43
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