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

[sas-] make XptSheet rows be list instead of tuple #2365

Merged
merged 2 commits into from
May 24, 2024

Conversation

midichef
Copy link
Contributor

Currently XptSheet in loaders/sas.py produces rows that are tuples.

That's undesirable because as @saulpw pointed out recently, rows can't be edited if they are tuples. And also because selecting one row may cause other rows to be selected if they are interned tuples, that have the same values and ID. This PR converts the tuples to lists.

to reproduce:
pip install xport==2.0.2
download brakes.xpt
vd brakes.xpt then inspect any row with ^Y for pyobj-row, the status bar will say tuple.

Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

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

Yes, these should be lists.

@anjakefala anjakefala merged commit a9980b3 into saulpw:develop May 24, 2024
13 checks passed
@midichef midichef deleted the xport_v2 branch May 25, 2024 09:41
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.

None yet

3 participants