Skip to content

Remove code which has been deprecated since v24.3 or earlier#2309

Draft
lauramurgatroyd wants to merge 6 commits intomasterfrom
remove_deprec_26
Draft

Remove code which has been deprecated since v24.3 or earlier#2309
lauramurgatroyd wants to merge 6 commits intomasterfrom
remove_deprec_26

Conversation

@lauramurgatroyd
Copy link
Copy Markdown
Member

Description

Addresses #2042

Example Usage

Contribution Notes

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
  • I confirm that the contribution does not violate any intellectual property rights of third parties

❤️ Thanks for your contribution!

warn("use `run(callbacks=[LogfileCallback(log_file)])` instead of `log_file`",
DeprecationWarning, stacklevel=2)
self.__log_file = log_file
self.max_iteration = 1
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TODO: check if this is handled ok, without it the ProgressCallback threw an error
Need to test real life behaviour of ProgressCallback

@lauramurgatroyd
Copy link
Copy Markdown
Member Author

Current failures:

  • test_gd_armijo_rosen
image
  • TestCGLS.test_convergence - something is very wrong
image

Comment on lines 183 to 192
def max_iteration(self):
'''gets the maximum number of iterations'''
return self.__max_iteration

@max_iteration.setter
def max_iteration(self, value):
'''sets the maximum number of iterations'''
assert isinstance(value, Integral) or np.isposinf(value)
self.__max_iteration = value

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

should this property be removed? It hasn't been deprecated

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.

1 participant