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

Bugfix/ordered dict #99

Merged
merged 2 commits into from Feb 16, 2017
Merged

Conversation

granrothge
Copy link
Contributor

Changes the required input for a collection of scans from dict to ordered dict. This fixes a problem of strange ordering caused by the python ordering keys for memory conservation. The tests were updated to reflect this change.

@codecov-io
Copy link

codecov-io commented Feb 16, 2017

Codecov Report

Merging #99 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
+ Coverage   84.07%   84.09%   +0.02%     
==========================================
  Files          47       47              
  Lines        3881     3886       +5     
==========================================
+ Hits         3263     3268       +5     
  Misses        618      618
Impacted Files Coverage Δ
neutronpy/data/scans.py 89.74% <100%> (+0.7%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01ec23d...5c4e661. Read the comment docs.

@granrothge
Copy link
Contributor Author

I changed to the if not isinstance(scans_dict, collections.OrderedDict) structure and added tests to to check this portion of the code. It should increase the code coverage.

@pseudocubic pseudocubic merged commit bf0ae96 into neutronpy:master Feb 16, 2017
@granrothge granrothge deleted the bugfix/ordered_dict branch February 21, 2017 21:07
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