Skip to content

Commit

Permalink
remove outdated test fixture f
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagsy committed Jul 26, 2023
1 parent 76b9e2f commit 4a28c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions ivy_robot_demos/interactive/manipulator_spline_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,11 @@ def compute_cost_and_sdfs(
return total_cost, joint_angles, link_positions, ivy.reshape(sdf_vals, (-1, 100, 1))


def main(interactive=True, try_use_sim=True, f=None, fw=None):
def main(interactive=True, try_use_sim=True, fw=None):
# config
this_dir = os.path.dirname(os.path.realpath(__file__))
fw = ivy.choose_random_backend(excluded=["numpy"]) if fw is None else fw
ivy.set_backend(fw)
f = ivy.with_backend(backend=fw) if f is None else f
sim = Simulator(interactive, try_use_sim)
lr = 0.5
num_anchors = 3
Expand Down Expand Up @@ -334,5 +333,4 @@ def main(interactive=True, try_use_sim=True, f=None, fw=None):
)
parsed_args = parser.parse_args()
fw = parsed_args.backend
f = None if fw is None else ivy.with_backend(backend=fw)
main(not parsed_args.non_interactive, not parsed_args.no_sim, fw)
4 changes: 1 addition & 3 deletions ivy_robot_demos/run_through.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def show_full_spline_path(
plt.show()


def main(interactive=True, f=None, fw=None):
def main(interactive=True, fw=None):
global INTERACTIVE
INTERACTIVE = interactive

Expand All @@ -158,7 +158,6 @@ def main(interactive=True, f=None, fw=None):

fw = ivy.choose_random_backend() if fw is None else fw
ivy.set_backend(fw)
f = ivy.with_backend(backend=fw) if f is None else f

# Spline Interpolation #
# ---------------------#
Expand Down Expand Up @@ -418,5 +417,4 @@ def __init__(self, base_inv_ext_mat=None):
)
parsed_args = parser.parse_args()
fw = parsed_args.backend
f = None if fw is None else ivy.with_backend(backend=fw)
main(not parsed_args.non_interactive, fw)

0 comments on commit 4a28c51

Please sign in to comment.