BrkRaw/brkraw

master branch -- BIDS conversion warning about pandas usage

Opened this issue · 2 comments

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.

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?

Looks like the pandas version in the virtualenv is 2.2.2