Skip to content

Commit

Permalink
upgrade optimtool
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Dec 13, 2023
1 parent cebb2a4 commit 7a4831b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion optimtool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
from ._version import __version__

if sys.version_info < (3, 7, 0):
raise OSError(f'optimtool-2.7.3 requires Python >=3.7, but yours is {sys.version}')
raise OSError(f'optimtool-2.8.0 requires Python >=3.7, but yours is {sys.version}')
2 changes: 1 addition & 1 deletion optimtool/_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def steihaug(sk: List[int],
ans = sk
break
betak = np.linalg.norm(rk)**2 / np.linalg.norm(r[k])**2
pk = - rk + betak * p[k]
pk = -rk + betak * p[k]
k = k + 1
return ans

Expand Down
2 changes: 1 addition & 1 deletion optimtool/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

__version__ = '2.7.3'
__version__ = '2.8.0'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup

if sys.version_info < (3, 7, 0):
raise OSError(f'optimtool-2.7.3 requires Python >=3.7, but yours is {sys.version}')
raise OSError(f'optimtool-2.8.0 requires Python >=3.7, but yours is {sys.version}')

if (3, 7, 0) <= sys.version_info < (3, 8, 0):
# https://github.com/pypa/setuptools/issues/926#issuecomment-294369342
Expand Down

0 comments on commit 7a4831b

Please sign in to comment.