Skip to content

Commit

Permalink
no docs_url + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed May 14, 2024
1 parent 3e1f635 commit bd5a5a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ jobs:
- uses: compas-dev/compas-actions.docs@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
doc_url: https://compas.dev/compas_fd/
4 changes: 1 addition & 3 deletions src/compas_fd/constraints/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def get_constraint_cls(geometry, **kwargs):
if cls is not None:
break
if cls is None:
raise GeometryNotRegisteredAsConstraint(
"No constraint is registered for this geometry type: {}".format(gtype)
)
raise GeometryNotRegisteredAsConstraint("No constraint is registered for this geometry type: {}".format(gtype))
return cls

def __new__(cls, *args, **kwargs):
Expand Down
4 changes: 1 addition & 3 deletions src/compas_fd/solvers/fd_constrained_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def fd_constrained_numpy(
# - vectorize the computation of residuals
# -
_update_constraints(numdata, constraints, damping)
if _is_converged_residuals(numdata.tangent_residuals, tol_res) and _is_converged_disp(
xyz_prev, numdata.xyz, tol_disp
):
if _is_converged_residuals(numdata.tangent_residuals, tol_res) and _is_converged_disp(xyz_prev, numdata.xyz, tol_disp):
break

_post_process_fd(numdata)
Expand Down

0 comments on commit bd5a5a8

Please sign in to comment.