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

Read headers with multi-line namelists #3

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

cchall
Copy link
Contributor

@cchall cchall commented Jan 10, 2025

Headers with multi-line namelists, for example:

&description
        text="Statistics data 'opal_statfile.in' 30/12/2024 19:36:53",
        contents="stat parameters"
&end

fail to be read because tokenize_namelist returns tags and keys containing newline characters.
A simple solution is just to strip the tags and keys as they are found.

An SDDS file generated by OPAL, which has this issue, is included in test resources.

@nikitakuklev
Copy link
Owner

Another weird file to add to the collection! Thanks for the PR

@nikitakuklev nikitakuklev merged commit 59bdb6c into nikitakuklev:master Jan 17, 2025
0 of 2 checks passed
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.

2 participants