Skip to content

Commit

Permalink
Merge pull request #1153 from loco-3d/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
cmastalli authored Aug 4, 2023
2 parents 828a556 + a74a0af commit de77bdc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
args:
Expand Down
2 changes: 1 addition & 1 deletion examples/bipedal_walk_fwddyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

# Added the callback functions
print("*** SOLVE " + key + " ***")
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
if WITHPLOT:
solver[i].setCallbacks(
[
Expand Down
2 changes: 1 addition & 1 deletion examples/bipedal_walk_invdyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

# Added the callback functions
print("*** SOLVE " + key + " ***")
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
if WITHPLOT:
solver[i].setCallbacks(
[
Expand Down
2 changes: 1 addition & 1 deletion examples/bipedal_walk_ubound.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

# Added the callback functions
print("*** SOLVE " + key + " ***")
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
if WITHPLOT:
solver[i].setCallbacks(
[
Expand Down
2 changes: 1 addition & 1 deletion examples/humanoid_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@

# Creating the DDP solver for this OC problem, defining a logger
solver = crocoddyl.SolverFDDP(problem)
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
display.rate = 4
display.freq = 4
if WITHPLOT:
Expand Down
2 changes: 1 addition & 1 deletion examples/humanoid_manipulation_ubound.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@

# Creating the DDP solver for this OC problem, defining a logger
solver = crocoddyl.SolverBoxFDDP(problem)
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
display.rate = 4
display.freq = 4
if WITHPLOT:
Expand Down
2 changes: 1 addition & 1 deletion examples/humanoid_taichi.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

# Creating the DDP solver for this OC problem, defining a logger
solver = crocoddyl.SolverBoxFDDP(problem)
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
display.rate = 4
display.freq = 4
if WITHPLOT:
Expand Down
2 changes: 1 addition & 1 deletion examples/quadrupedal_gaits_fwddyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@

# Added the callback functions
print("*** SOLVE " + key + " ***")
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
if WITHPLOT:
solver[i].setCallbacks(
[
Expand Down
2 changes: 1 addition & 1 deletion examples/quadrupedal_gaits_invdyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@

# Added the callback functions
print("*** SOLVE " + key + " ***")
if WITHDISPLAY and type(display) == crocoddyl.GepettoDisplay:
if WITHDISPLAY and isinstance(crocoddyl.GepettoDisplay, type(display)):
if WITHPLOT:
solver[i].setCallbacks(
[
Expand Down

0 comments on commit de77bdc

Please sign in to comment.