Skip to content

release: svy-io 0.7.1, Stata writer fixes - #316

Merged
MamadouSDiallo merged 1 commit into
mainfrom
fix/svy-io-stata-writer
Oct 16, 2026
Merged

MamadouSDiallo merged 1 commit into
mainfrom
fix/svy-io-stata-writer

Conversation

@MamadouSDiallo

Copy link
Copy Markdown
Contributor
  • write_dta defaulted to format 119, which Stata BE/SE cannot open. Default is now 118, or 119 past 32,767 columns; an older format with that many columns raises (its 16-bit column count would wrap). version=15 still maps to 119.
  • Boolean columns were stored as double; now byte 0/1.
  • ReadStat's value-label sort subtracted two int32 codes, so codes such as ±2 billion were written out of order. First local patch to the vendored ReadStat.

Note: svy's _write_stata passes version=15 when none is given, so svy users still get 119 until svy forwards None (needs svy-io >= 0.7.1).

- write_dta defaults to format 118 (119 only past 32,767 columns)
- booleans stored as byte, not double
- overflow-free value-label sort in ReadStat
@MamadouSDiallo
MamadouSDiallo merged commit f062d7d into main Oct 16, 2026
24 checks passed
@MamadouSDiallo
MamadouSDiallo deleted the fix/svy-io-stata-writer branch October 16, 2026 17:00
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.

1 participant