Skip to content

Tractography::Properties::get_step_size() function#1069

Merged
Lestropie merged 1 commit intomasterfrom
properties_get_step_size
Jul 25, 2017
Merged

Tractography::Properties::get_step_size() function#1069
Lestropie merged 1 commit intomasterfrom
properties_get_step_size

Conversation

@Lestropie
Copy link
Member

As raised here.

Have identified this duplication of code many times, but never gotten around to functionalising it.

This function homologates a number of independent pieces of code that try to deal with the fact that the distance between points along a streamline may not be equivalent to the internal step size of the tractography algorithm, nor may such a fixed step size even exist.
It also fixes a bug where running the tckstats command where the step size was not defined (e.g. in the output of tckglobal) would result in an error trying to convert an empty string to a float.
@Lestropie Lestropie added the bug label Jul 24, 2017
@Lestropie Lestropie requested a review from dchristiaens July 24, 2017 06:05
Copy link
Member

@dchristiaens dchristiaens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Nice work!

@Lestropie Lestropie self-assigned this Jul 25, 2017
@Lestropie Lestropie merged commit 100da72 into master Jul 25, 2017
@Lestropie Lestropie deleted the properties_get_step_size branch July 25, 2017 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants