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

Make type readonly #150

Merged
merged 3 commits into from
Oct 2, 2023
Merged

Make type readonly #150

merged 3 commits into from
Oct 2, 2023

Conversation

jokasimr
Copy link
Collaborator

@jokasimr jokasimr commented Sep 29, 2023

Fixes #146.

This is not finished.
Setting the type field readonly makes replace not give it in the constructor - causing lots of test errors.

The fix was to remove the setter for type, but not mark it to be readonly.
This caused some tests that assumed all non-readonly fields were settable to fail.
To avoid the test failures type was explicitly removed from the list of fields tested in the test_can_set_writable_fields test.

@jokasimr jokasimr requested a review from jl-wynen September 29, 2023 11:38
@jl-wynen jl-wynen added the sprint-scipp-2023-09 Sprint of the Scipp team label Sep 29, 2023
@jokasimr jokasimr marked this pull request as ready for review September 29, 2023 14:27
@jl-wynen jl-wynen merged commit 9f0070e into main Oct 2, 2023
12 checks passed
@jl-wynen jl-wynen deleted the make-type-readonly branch October 2, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sprint-scipp-2023-09 Sprint of the Scipp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make dataset.type read-only
2 participants