Skip to content

Commit

Permalink
feat: added some FurtureWarning suppressant
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 3, 2022
1 parent 245760a commit 042ed9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fcdproc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import numpy as np
from fcdproc.workflow.base import Main_FCD_pipeline
from pkg_resources import get_distribution, DistributionNotFound
from warnings import simplefilter
# ignore all future warnings
simplefilter(action='ignore', category=FutureWarning)

try:
__version__ = get_distribution("fcdproc").version
Expand Down
8 changes: 6 additions & 2 deletions fcdproc/workflow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import os
from copy import deepcopy
from fcdproc.utils.colors import Colors
from warnings import simplefilter
# ignore all future warnings
simplefilter(action='ignore', category=FutureWarning)


def Main_FCD_pipeline(bids_dir, output_dir, work_dir, analysis_mode, participant_label, controls , pt_positive, pt_negative, fs_reconall, fs_license_file, fs_subjects_dir, clean_workdir):
Expand Down Expand Up @@ -124,8 +127,9 @@ def init_single_subject_wf(subject_id, bids_dir, output_dir, work_dir):
from fmriprep.interfaces import SubjectSummary
from niworkflows.utils.misc import fix_multi_T1w_source_name
from fmriprep.workflows.bold.resampling import init_bold_surf_wf
import warnings
warnings.filterwarnings("ignore", message="Setting 'extension_initial_dot' will be removed in pybids 0.16.")
from warnings import simplefilter
# ignore all future warnings
simplefilter(action='ignore', category=FutureWarning)

name = "single_subject_%s_wf" % subject_id

Expand Down

0 comments on commit 042ed9e

Please sign in to comment.