Skip to content

Commit

Permalink
Update docstrings for numpy 2.x.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
anugrahjo committed Nov 25, 2024
1 parent b6912c3 commit e224973
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyslsqp/save_and_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ def load_variables(filepath, vars, itr_start=0, itr_end=-1, major_only=False):
Iteration data saved to : slsqp_recorder.hdf5
>>> from pyslsqp.postprocessing import load_variables
>>> load_variables('slsqp_recorder.hdf5', ['objective', 'optimality', 'x[0]'], itr_start=0, itr_end=-1, major_only=True)
{'objective': [...0.5..., ...0.0..., ...0.0...], 'optimality': [...99.0..., ...0.0..., ...0.0...], 'x[0]': [...0.5..., ...0.0..., ...0.0...]}
{'objective': [np.float64(0.5), np.float64(0.0), np.float64(0.0)], 'optimality': [np.float64(99.0), np.float64(0.0), np.float64(0.0)], 'x[0]': [np.float64(0.5), np.float64(0.0), np.float64(0.0)]}
'''
if not isinstance(filepath, str):
raise ValueError("filepath must be a string.")
Expand Down

0 comments on commit e224973

Please sign in to comment.