Skip to content

Commit

Permalink
sty: run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
celprov committed May 1, 2024
1 parent 04849d5 commit 4cea98e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mriqc_learn/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# https://www.nipreps.org/community/licensing/
#
"""Public API for MRIQC-learn datasets."""

from pathlib import Path
from pkg_resources import resource_filename as pkgrf

Expand Down Expand Up @@ -101,7 +102,7 @@ def load_data(
if split_strategy is None or split_strategy.lower() == "none":
return (
dataframe[dataframe.columns[xy_index:]],
dataframe[dataframe.columns[:xy_index]]
dataframe[dataframe.columns[:xy_index]],
), (None, None)

n = len(dataframe)
Expand All @@ -122,8 +123,5 @@ def load_data(

return (
train_df[dataframe.columns[xy_index:]],
train_df[dataframe.columns[:xy_index]]
), (
test_df[dataframe.columns[xy_index:]],
test_df[dataframe.columns[:xy_index]]
)
train_df[dataframe.columns[:xy_index]],
), (test_df[dataframe.columns[xy_index:]], test_df[dataframe.columns[:xy_index]])
1 change: 1 addition & 0 deletions mriqc_learn/models/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# https://www.nipreps.org/community/licensing/
#
"""Create a pipeline for nested cross-validation."""

from pkg_resources import resource_filename as pkgrf

from joblib import load
Expand Down

0 comments on commit 4cea98e

Please sign in to comment.