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

Minimizer.params is always the same instance as the params used to construct the Minimizer, closes #174. #183

Closed
wants to merge 3 commits into from

Conversation

andyfaff
Copy link
Contributor

@andyfaff andyfaff commented Jan 4, 2015

@danielballan to kick this PR off, I've modified the test_copy_params.py file, which was added to test #56.
I've added an extra test test_copy_params_Minimizer, that checks if the Minimizer.params attribute is the same instance as the params object used to construct the Minimizer in the first place.

Without the "fix" I get the following error:

FAIL: test_copy_params_Minimizer (test_copy_params.test_copy_params)

Traceback (most recent call last):
File "/Users/anz/Documents/Andy/programming/lmfit-py/tests/test_copy_params.py", line 80, in test_copy_params_Minimizer
assert_(params is fitter.params)
File "/Users/anz/Documents/Andy/programming/dev2/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
raise AssertionError(smsg)
AssertionError


@andyfaff
Copy link
Contributor Author

andyfaff commented Jan 4, 2015

The first commit obviously fails the tests I've just added. But the second should pass, as I've made the amendments to minimizer.py

@newville newville mentioned this pull request May 17, 2015
@newville
Copy link
Member

newville commented Aug 1, 2015

I believe this issue is addressed as of the merge of #230. Is it OK to close this?

@newville
Copy link
Member

newville commented Aug 3, 2015

I'm pretty sure that #230 makes this PR impossible to merge. minimize.py has changed too much, and the test of equality of params and out1.params in in the test_copy_params.py in this PR will certainly fail, by design.

If there are issues regarding values or identity of input and output params post-#230, please re-submit new relative to the current master.

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.

2 participants