Skip to content

Commit

Permalink
Fides 0.7.7 (#56)
Browse files Browse the repository at this point in the history
* decrease log verbosity for successful starts, fixes #55

* bump version, drop py38
  • Loading branch information
FFroehlich authored May 1, 2023
1 parent 599ef6a commit 040998b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.9', '3.10', '3.11']

steps:

Expand Down
8 changes: 4 additions & 4 deletions fides/minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def check_convergence(self, step: Step, funout: Funout) -> None:
if self.tr_ratio > self.get_option(Options.MU) and \
np.abs(fval - self.fval) < fatol + frtol*np.abs(self.fval):
self.exitflag = ExitFlag.FTOL
self.logger.warning(
self.logger.info(
'Stopping as function difference '
f'{np.abs(self.fval - fval):.2E} was smaller than specified '
f'tolerances (atol={fatol:.2E}, rtol={frtol:.2E})'
Expand All @@ -536,7 +536,7 @@ def check_convergence(self, step: Step, funout: Funout) -> None:

elif self.iteration > 1 and nsx < xtol:
self.exitflag = ExitFlag.XTOL
self.logger.warning(
self.logger.info(
'Stopping as norm of step '
f'{nsx} was smaller than specified '
f'tolerance (tol={xtol:.2E})'
Expand All @@ -545,15 +545,15 @@ def check_convergence(self, step: Step, funout: Funout) -> None:

elif gnorm <= gatol:
self.exitflag = ExitFlag.GTOL
self.logger.warning(
self.logger.info(
'Stopping as gradient norm satisfies absolute convergence '
f'criteria: {gnorm:.2E} < {gatol:.2E}'
)
converged = True

elif gnorm <= grtol * np.abs(self.fval):
self.exitflag = ExitFlag.GTOL
self.logger.warning(
self.logger.info(
'Stopping as gradient norm satisfies relative convergence '
f'criteria: {gnorm:.2E} < {grtol:.2E} * '
f'{np.abs(self.fval):.2E}'
Expand Down
2 changes: 1 addition & 1 deletion fides/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.6"
__version__ = "0.7.7"
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def read(fname):
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'],
python_requires='>=3.7')
python_requires='>=3.9')

0 comments on commit 040998b

Please sign in to comment.