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

Fix parsing 6S output with values prinated with astersisk #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrzejbartoszek
Copy link

In some cases, 6S prints values as a sequence of asterisks instead of proper number. It happens when 6S/Fortran is not able to print numbers according to the provided format. However, it interferes with parsing output in Py6S and leads to an error.

This change should fix the issue by removing asterisks belonging to tables (printed by 6S) only. Values printed with asterisks are returned as NaNs in Py6S.

So it won't interfere with outputs printed
with asterisks only (it happens when 6S is
not able to print numbers according to the
provided format).
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.

1 participant