You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
relax function of the Relaxer object can have a boolean parameter verbose to let user to print out or suppress the energy and fmax values at each step of relaxation.
Motivation
For a stream lined application, screen output of relaxation steps can be too much to monitor. In that case user may choose to suppress these.
Proposed Solution
In relax.py :
stream = sys.stdout if verbose else io.StringIO()
with contextlib.redirect_stdout(stream):
optimizer = self.optimizer(ecf, **kwargs)
optimizer.run(fmax=fmax, steps=steps)
and of course at function def line:
Thank you for suggesting this feature! We warmly welcome contributions from the community. Please feel free to submit a pull request once you have implemented this feature. Thank you!
Contact Details
No response
Feature Description
relax function of the Relaxer object can have a boolean parameter verbose to let user to print out or suppress the energy and fmax values at each step of relaxation.
Motivation
For a stream lined application, screen output of relaxation steps can be too much to monitor. In that case user may choose to suppress these.
Proposed Solution
In relax.py :
stream = sys.stdout if verbose else io.StringIO()
with contextlib.redirect_stdout(stream):
optimizer = self.optimizer(ecf, **kwargs)
optimizer.run(fmax=fmax, steps=steps)
and of course at function def line:
also import necessary modules:
import sys
import contextlib
Contribution Interest
Code of Conduct
The text was updated successfully, but these errors were encountered: