Skip to content

Remove LOBSTER output file trailing line sensitivity#4448

Merged
shyuep merged 8 commits intomaterialsproject:masterfrom
DanielYang59:cohpcar-new-line
Jul 29, 2025
Merged

Remove LOBSTER output file trailing line sensitivity#4448
shyuep merged 8 commits intomaterialsproject:masterfrom
DanielYang59:cohpcar-new-line

Conversation

@DanielYang59
Copy link
Contributor

@DanielYang59 DanielYang59 commented Jul 4, 2025

Summary

str.splitlines(keepends=False):

Unlike split() when a delimiter string sep is given, this method returns an empty list for the empty string, and a terminal line break does not result in an extra line:

cc @JaGeo @naik-aakash

@DanielYang59 DanielYang59 marked this pull request as ready for review July 4, 2025 18:45
Co-authored-by: Aakash Ashok Naik <91958822+naik-aakash@users.noreply.github.com>
Signed-off-by: Haoyu (Daniel) YANG 杨浩宇 <yanghaoyu97@outlook.com>
@DanielYang59 DanielYang59 marked this pull request as draft July 5, 2025 08:55
@DanielYang59 DanielYang59 marked this pull request as ready for review July 5, 2025 09:13
@naik-aakash
Copy link
Contributor

Hi @DanielYang59 , thanks for this update. Looks good to me.

@shyuep shyuep merged commit fc5286e into materialsproject:master Jul 29, 2025
44 checks passed
@DanielYang59 DanielYang59 deleted the cohpcar-new-line branch July 29, 2025 16:22
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.

Cannot init Cohpcar in matgenb example notebook: ValueError: setting an array element with a sequence.

4 participants