Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

master branch -- BIDS conversion warning about pandas usage #173

Open
gdevenyi opened this issue Oct 29, 2024 · 2 comments
Open

master branch -- BIDS conversion warning about pandas usage #173

gdevenyi opened this issue Oct 29, 2024 · 2 comments

Comments

@gdevenyi
Copy link
Collaborator

Using a checked out version of master, we're getting the following warnings during BIDS conversion

Converting 20240730_102544_MCH_OVX_LS12_L_1_1_1...
...Done.
/opt/quarantine/software/brkraw/20240617/install/venvs/brkraw/lib/python3.10/site-packages/brkraw/scripts/brkraw.py:705: FutureWarning: Setting an item of incompatible dtype is deprecated
and will raise an error in a future version of pandas. Value 'sub-LS012R_ses-1_acq-FLASH' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
 filtered_dset.loc[i, 'FileName'] = fname
/opt/quarantine/software/brkraw/20240617/install/venvs/brkraw/lib/python3.10/site-packages/brkraw/scripts/brkraw.py:706: FutureWarning: Setting an item of incompatible dtype is deprecated
and will raise an error in a future version of pandas. Value '../nifti/sub-LS012R/ses-1/anat' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
 filtered_dset.loc[i, 'Dir'] = dtype_path

It looks like perhaps some internal structure is slightly converting dtypes in pandas, and pandas is going to stop letting that happen soon.

@dvm-shlee
Copy link
Member

Thank you for the report, I will check if I can make quick change on this.

Could you also let me know your current pandas version installed?

@gdevenyi
Copy link
Collaborator Author

Looks like the pandas version in the virtualenv is 2.2.2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants