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

[FIX] check seeds dtype #2044

Merged
merged 3 commits into from Jan 28, 2020
Merged

[FIX] check seeds dtype #2044

merged 3 commits into from Jan 28, 2020

Conversation

skoudoro
Copy link
Member

A small PR to fix #2034. I just check the seed type to avoid an error later with a much more complex message.

@skoudoro skoudoro added this to the 1.2 milestone Jan 25, 2020
@@ -79,6 +80,9 @@ def __init__(self, direction_getter, stopping_criterion, seeds, affine,
raise ValueError("step_size must be greater than 0.")
if maxlen < 1:
raise ValueError("maxlen must be greater than 0.")
if not isinstance(seeds, Iterable):
raise ValueError("seeds should be a list of 3D points. Please"
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems a bit confusing to me. The first sentence says the input should be a list and then the second sentence says it should be an array. I think either is fine? Could you please clarify that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok 👍 , will do

@arokem
Copy link
Contributor

arokem commented Jan 25, 2020

Looks like conda on OSX is having a bad morning. Have you seen that one before?

@skoudoro
Copy link
Member Author

Yes, I saw that on FURY. Sometimes, it is just a server problem and we have to be patient. Sometimes, the lastest miniconda version is just not working correctly so we have to downgrade the miniconda version and not get the latest one.

I will wait a bit to commit my change and let's see.

@codecov
Copy link

codecov bot commented Jan 25, 2020

Codecov Report

Merging #2044 into master will increase coverage by 0.77%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2044      +/-   ##
==========================================
+ Coverage   90.37%   91.15%   +0.77%     
==========================================
  Files         247      247              
  Lines       31525    31595      +70     
  Branches     3314     3322       +8     
==========================================
+ Hits        28492    28801     +309     
+ Misses       2298     2071     -227     
+ Partials      735      723      -12
Impacted Files Coverage Δ
dipy/tracking/local_tracking.py 95.83% <100%> (+0.13%) ⬆️
dipy/tracking/tests/test_tracking.py 96.01% <100%> (+0.02%) ⬆️
dipy/viz/app.py 76.75% <0%> (+0.25%) ⬆️
dipy/viz/panel.py 73.75% <0%> (+0.35%) ⬆️
dipy/reconst/tests/test_sfm.py 98.71% <0%> (+0.48%) ⬆️
dipy/reconst/forecast.py 92.18% <0%> (+0.52%) ⬆️
dipy/io/vtk.py 55.88% <0%> (+0.98%) ⬆️
dipy/reconst/sfm.py 92.14% <0%> (+1.02%) ⬆️
dipy/viz/tests/test_apps.py 94.73% <0%> (+1.75%) ⬆️
dipy/workflows/tests/test_viz.py 96.07% <0%> (+1.96%) ⬆️
... and 11 more

@arokem
Copy link
Contributor

arokem commented Jan 28, 2020

YLGTM. Since this is small, and has already gone through one round of review, I will go ahead and merge this now.

@arokem arokem merged commit 1485f04 into dipy:master Jan 28, 2020
@skoudoro skoudoro deleted the fix-2034 branch January 28, 2020 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the tutorial on Euler method on my data
2 participants