Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions dicelib/connectivity.pyx
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# cython: language_level=3, c_string_type=str, c_string_encoding=ascii, boundscheck=False, wraparound=False, profile=False
# cython: language_level=3, c_string_type=str, c_string_encoding=ascii, boundscheck=False, wraparound=False, profile=False, nonecheck=False, cdivision=True, initializedcheck=False, binding=False
from concurrent.futures import ThreadPoolExecutor

from libc.math cimport round as cround, sqrt
from libcpp cimport bool

import nibabel as nib

import numpy as np

import os

from scipy.linalg import inv

from time import time

from dicelib.streamline import create_replicas
from dicelib.ui import ProgressBar, set_verbose, setup_logger
from dicelib.utils import check_params, File, Num, format_time
Expand Down
6 changes: 3 additions & 3 deletions dicelib/scripts/dice_tractogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ def coherence():
[['tractogram'], {'help': desc['tractogram_filename']}],
[['sph_func'], {'help': desc['sph_func_filename']}],
[['out_weights'], {'help': desc['out_weights_filename']}],
[['--stat'], {'choices': ['min','mean','max'], 'default': 'min', 'help': desc['stat']}],
[['--normalize', '-n'], {'action': 'store_true', 'help': desc['normalize']}],
[['--stat'], {'choices': ['min','mean','max', 'all'], 'default': 'min', 'help': desc['stat']}],
[['--normalize', '-n'], {'type': str, 'default': None, 'help': desc['lobes_filename']}],
[['--trim', '-t'], {'type': float, 'default': 0.05, 'help': desc['trim']}],
[['--shift', '-s'], {'type': float, 'default': 0.5, 'help': desc['shift']}]
]
Expand All @@ -455,7 +455,7 @@ def coherence():
sph_func_filename=options.sph_func,
out_weights_filename=options.out_weights,
stat=options.stat,
normalize=options.normalize,
lobes_filename=options.normalize,
trim=options.trim,
shift=options.shift,
force=options.force,
Expand Down
Loading