Skip to content

Commit

Permalink
To comply with XMLSchema paramater expectation
Browse files Browse the repository at this point in the history
in https://github.com/materialdigital/ADIS2023/blob/f33ebb84921d1cd907b60d3c66494eddfd2512a4/adis_tools/parsers.py#L15
for `XMLSchema` we have
`Expected type 'str | bytes | Path | IO[str] | IO[bytes] | XMLResource | Element | ElementTree | list[str | bytes | Path | IO[str] | IO[bytes] | XMLResource | Element | ElementTree]', got 'Traversable' instead`
  • Loading branch information
QuantumChemist committed Jul 1, 2024
1 parent 0b6b477 commit a188487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adis_tools/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def parse_pw(xml_file):
"""Parse a Quantum Espresso XML output file."""

xml_dict = XMLSchema(files(schemas) / 'qes_230310.xsd').to_dict(xml_file)
xml_dict = XMLSchema(str(files(schemas) / 'qes_230310.xsd')).to_dict(xml_file)

parsed_results = {}

Expand Down

0 comments on commit a188487

Please sign in to comment.