Skip to content

fix: IntervalData write fails with single-length Interval-like objects - #258

Open
SophiaPerzan-DG wants to merge 2 commits into
mainfrom
fix-intervaldata-unintentionally-readonly
Open

SophiaPerzan-DG wants to merge 2 commits into
mainfrom
fix-intervaldata-unintentionally-readonly

Conversation

@SophiaPerzan-DG

@SophiaPerzan-DG SophiaPerzan-DG commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #259

@ovesh ovesh 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.

non-blocking comment.

data = np.arange(0, 30).reshape(3, 10)
interval_data = IntervalData(interval, data)

view = interval_data.data

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.

maybe change the docstring for the data property to add that the returned object is read-only.

@SophiaPerzan-DG
SophiaPerzan-DG added this pull request to stack #262 October 23, 2026 21:50

This branch has not been deployed

No deployments
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.

IntervalData __getitem__ returns read-only data when accessing via single-element IntervalLike

2 participants