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 blank line bug in io.res.ResWriter #3671

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

stefsmeets
Copy link
Contributor

Summary

This PR fixes two bugs in the res writer:

  • Fix 1: Add a blank line at the end of the file
  • Fix 2: Do not write a blank line if REMS is empty

Closes #3636

Checklist

  • Google format doc strings added. Check with ruff.
  • Type annotations included. Check with mypy.
  • Tests added for new features/fixes.

Tip: Install pre-commit hooks to auto-check types and linting before every commit:

pip install -U pre-commit
pre-commit install

Copy link
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

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

nice work, thanks @stefsmeets! 👍

CI failure unrelated

@janosh janosh merged commit 26cf207 into materialsproject:master Mar 5, 2024
19 of 22 checks passed
@stefsmeets stefsmeets deleted the res-fix branch March 5, 2024 14:17
@janosh janosh added io Input/output functionality fix Bug fix PRs labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PRs io Input/output functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pymatgen.io.res - compatibility issue with the AIRSS package.
2 participants