Skip to content

Commit d5370df

Browse files
authored
Merge pull request #2365 from janosh/fix_get_potcar_symbols
Fix Lobsterin()._get_potcar_symbols()
2 parents fd553a8 + e181a7f commit d5370df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymatgen/io/lobster/inputs.py

+2
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ def _get_potcar_symbols(POTCAR_input: str) -> list:
617617
# Warning about a bug in lobster-4.1.0
618618
with zopen(POTCAR_input, "r") as f:
619619
data = f.read()
620+
if isinstance(data, bytes):
621+
data = data.decode("utf-8")
620622
if "SHA256" in data or "COPYR" in data:
621623
warnings.warn(
622624
"These POTCARs are not compatible with "

0 commit comments

Comments
 (0)