Skip to content

Commit

Permalink
ENH: default to use a forkserver
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbansal6 committed Nov 10, 2021
1 parent 7c94302 commit 7b18557
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ local_settings.py

*.swp
.pytest_cache
.vscode
47 changes: 28 additions & 19 deletions fitlins/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,35 @@
==================
"""

import sys
import os
import os.path as op
import time
import logging
import warnings
from copy import deepcopy
from pathlib import Path
from tempfile import mkdtemp
from argparse import ArgumentParser
from argparse import RawTextHelpFormatter
from multiprocessing import cpu_count

import bids
from bids.modeling import auto_model, BIDSStatsModelsGraph

from .. import __version__
from ..workflows import init_fitlins_wf
from ..utils import bids as fub, config
from ..viz.reports import build_report_dict, write_full_report
from multiprocessing import set_start_method

try:
set_start_method("forkserver")
except RuntimeError:
pass #
finally:
import sys
import os.path as op
import time
import logging
import warnings
from copy import deepcopy
from pathlib import Path
from tempfile import mkdtemp
from argparse import ArgumentParser
from argparse import RawTextHelpFormatter
from multiprocessing import cpu_count
from multiprocessing import set_start_method

import bids
from bids.modeling import auto_model, BIDSStatsModelsGraph

from .. import __version__
from ..workflows import init_fitlins_wf
from ..utils import bids as fub, config
from ..viz.reports import build_report_dict, write_full_report


logging.addLevelName(25, 'IMPORTANT') # Add a new level between INFO and WARNING
logger = logging.getLogger('cli')
Expand Down

0 comments on commit 7b18557

Please sign in to comment.