We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd553a8 commit e181a7fCopy full SHA for e181a7f
pymatgen/io/lobster/inputs.py
@@ -617,6 +617,8 @@ def _get_potcar_symbols(POTCAR_input: str) -> list:
617
# Warning about a bug in lobster-4.1.0
618
with zopen(POTCAR_input, "r") as f:
619
data = f.read()
620
+ if isinstance(data, bytes):
621
+ data = data.decode("utf-8")
622
if "SHA256" in data or "COPYR" in data:
623
warnings.warn(
624
"These POTCARs are not compatible with "
0 commit comments