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

Fix parsing ascii file with empty string #42

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

trossi
Copy link
Contributor

@trossi trossi commented Aug 15, 2024

Describe the proposed changes

The PR will fix a bug in parsing ASCII files with empty strings and add a test parsing a file generated with Rscript -e "saveRDS('', file='empty.rds', ascii=TRUE, compress=FALSE)".

Additional information

XDR files do not have this issue and a test case for them exists already.

Checklist before requesting a review

  • I have performed a self-review of my code
  • The code conforms to the style used in this package (checked with Ruff)
  • The code is fully documented and typed (type-checked with Mypy)
  • I have added thorough tests for the new/changed functionality

@trossi
Copy link
Contributor Author

trossi commented Aug 15, 2024

Ruff CI job is failing but the issue seems unrelated to this PR.

@trossi
Copy link
Contributor Author

trossi commented Aug 15, 2024

I pushed a fix to the ruff issue 2de8e9c. This issue seemed dependent on the ruff version (worked locally with ruff 0.4.7 but failed with 0.5.7 as in CI).

Copy link
Owner

@vnmabus vnmabus left a comment

Choose a reason for hiding this comment

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

LGTM and tests pass.

@vnmabus vnmabus merged commit 5166258 into vnmabus:develop Aug 16, 2024
15 checks passed
@trossi trossi deleted the fix-empty-string branch October 29, 2024 08:17
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