Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed morphology loading - Diameter vs radius #8

Merged
merged 1 commit into from
Jul 4, 2016

Conversation

favreau
Copy link
Member

@favreau favreau commented Jun 30, 2016

No description provided.

@hernando
Copy link
Contributor

hernando commented Jul 1, 2016

Tests need fixing.

@@ -201,7 +201,7 @@ bool MorphologyLoader::_importMorphology(
const float previousRadius =
(_geometryParameters.getRadius() < 0.f ?
-_geometryParameters.getRadius() :
samples[ i - step ].w() * _geometryParameters.getRadius( ));
samples[ i - step ].w() * 0.5f * _geometryParameters.getRadius( ));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not getRadiusFactor or getRadiusMultiplier?
Even better, you could add the function float correctRadius(float radius) in GeometryParameters to do this entire operation. This way you woudn't have to use a negative value to force an absolute value (which is a trick I'd rather avoid).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point! Thanks. Working on it.

@tribal-tec tribal-tec merged commit f88ca08 into BlueBrain:master Jul 4, 2016
@ppodhajski ppodhajski mentioned this pull request May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants