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

[BUG] flatten series crashes conversion when invalid data is in spreadsheet #280

Closed
bendhouseart opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bendhouseart
Copy link
Contributor

Describe the bug
pypet2bids crashes when bad input values are present in a blood spreadsheet.

To Reproduce
Include a nonsense/non-pythonic datatype in a spreadsheet column and read it in with the --metadata-path argument in dcm2niix4pet. e.g. #DIV/0!

Expected behaviour
Conversion completes and outputs a blood tsv, sidecar, etc with an empty value for the entity instead of raising the following error:

*pypet2bids/helper_funictions.py, line 117, in flatten_series
    raise Exception(f"Invalid Series: {series}")

Exception: Invalid Series: 0 NaN

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version (matlab/python)
@bendhouseart bendhouseart added the bug Something isn't working label Feb 28, 2024
@bendhouseart bendhouseart self-assigned this Dec 20, 2024
@bendhouseart
Copy link
Contributor Author

Unable to reproduce when placing #DIV/0 in spreadsheets, seems to be handled by this line in pypet2bids.helper_functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant