Skip to content

Commit

Permalink
maint: remove *Pandas*'s FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 19, 2024
1 parent 18e0f3a commit 469501d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mriqc/interfaces/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def _run_interface(self, runtime):
# DVARS
dvars = pd.read_csv(
self.inputs.dvars,
delim_whitespace=True,
sep=r'\s+',
skiprows=1, # column names have spaces
header=None,
names=['dvars_std', 'dvars_nstd', 'dvars_vstd'],
Expand All @@ -370,15 +370,15 @@ def _run_interface(self, runtime):

# FD
fd = pd.read_csv(
self.inputs.fd, delim_whitespace=True, header=0, names=['framewise_displacement']
self.inputs.fd, sep=r'\s+', header=0, names=['framewise_displacement']
)
fd.index = pd.RangeIndex(1, timeseries.index.max() + 1)

# AQI
aqi = pd.read_csv(self.inputs.quality, delim_whitespace=True, header=None, names=['aqi'])
aqi = pd.read_csv(self.inputs.quality, sep=r'\s+', header=None, names=['aqi'])

# Outliers
aor = pd.read_csv(self.inputs.outliers, delim_whitespace=True, header=None, names=['aor'])
aor = pd.read_csv(self.inputs.outliers, sep=r'\s+', header=None, names=['aor'])

timeseries = pd.concat((timeseries, dvars, fd, aqi, aor), axis=1)

Expand Down

0 comments on commit 469501d

Please sign in to comment.