Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Oct 9, 2023
1 parent e54d07d commit 7e27c02
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.5.0 requires Python >=3.7, but yours is {sys.version}')
raise OSError(f'optimtool-2.5.1 requires Python >=3.7, but yours is {sys.version}')
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.5.0'
__version__ = '2.5.1'
2 changes: 1 addition & 1 deletion optimtool/constrain/mixequal.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def lagrange_augmentedm(funcs: FuncArray,
vkx = v_k(cons_equal, cons_unequal, args, muk, sigma, x_0)
if vkx <= epsilonk:
res = L.jacobian(args)
if (vkx <= epsilon) and (np.linalg.norm(np.array(res.subs(dict(zip(args, x_0)))).astype(DataType)) <= eta):
if (vkx <= epsilon) and (np.linalg.norm(np.array(res.subs(dict(zip(args, x_0)))).astype(DataType)) <= etak):
f.append(get_value(funcs, args, x_0))
if verbose:
print("{}\t{}\t{}".format(x_0, f[-1], k))
Expand Down
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.5.0 requires Python >=3.7, but yours is {sys.version}')
raise OSError(f'optimtool-2.5.1 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 7e27c02

Please sign in to comment.