Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Copy over module algorithms correctly #184

Merged
merged 4 commits into from
Jun 28, 2019
Merged

Conversation

marpulli
Copy link
Contributor

The module algorithms dictionary is expected to be a list containing tuples but after cloning a module this is not the case. This PR fixes that.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@meissnereric
Copy link
Contributor

Thanks for this Mark!

Will you add the unit test you wrote from #183 to make sure this doesn't regress in the future? Looks like it got missed in the commit.

@marpulli
Copy link
Contributor Author

I can add a unit test but the test in #183 will still fail because kernels aren't copied correctly

@meissnereric
Copy link
Contributor

Yep, misread the details since they came at the same time!
A unit test here would also be nice if possible, thanks! I'll have a look at the kernel issue soon.

@codecov-io
Copy link

codecov-io commented Jun 25, 2019

Codecov Report

Merging #184 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #184      +/-   ##
===========================================
+ Coverage    88.12%   88.15%   +0.02%     
===========================================
  Files           80       80              
  Lines         4077     4077              
  Branches       692      692              
===========================================
+ Hits          3593     3594       +1     
  Misses         310      310              
+ Partials       174      173       -1
Impacted Files Coverage Δ
mxfusion/modules/module.py 80.82% <100%> (+0.51%) ⬆️

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 68e2ff7...d627581. Read the comment docs.

@marpulli
Copy link
Contributor Author

Tests fail on mac builds because mock isn't installed - do you mind having mock as a dependency for tests?

@@ -8,3 +8,4 @@ GPy>=1.9.6
matplotlib
mxnet>=1.3
mxboard>=0.1.0
mock
Copy link
Contributor

Choose a reason for hiding this comment

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

Please specify a version number. Just use the version that you have tested working.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mock>=3.0.5 or mock==3.0.5?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please use mock>=3.0.5 as we will not actively maintain the dependency consistence. Setting exact version numbers can easily result in complicated installation failure.

@marpulli marpulli mentioned this pull request Jun 27, 2019
Copy link
Contributor

@meissnereric meissnereric left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@meissnereric meissnereric merged commit 28c57ff into amzn:develop Jun 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants