Skip to content

Commit

Permalink
refactor: remove add_args_kwargs.
Browse files Browse the repository at this point in the history
This is 1) expensive 2) dangerous 3) source of bug.
  • Loading branch information
paquiteau committed Feb 14, 2024
1 parent 2b1764c commit 3385679
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
6 changes: 0 additions & 6 deletions modopt/base/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"""

import numpy as np

from modopt.base.wrappers import add_args_kwargs
from modopt.interface.errors import warn


Expand Down Expand Up @@ -45,10 +43,6 @@ def check_callable(input_obj, add_agrs=True):
"""
if not callable(input_obj):
raise TypeError('The input object must be a callable function.')

if add_agrs:
input_obj = add_args_kwargs(input_obj)

return input_obj


Expand Down
49 changes: 0 additions & 49 deletions modopt/base/wrappers.py

This file was deleted.

0 comments on commit 3385679

Please sign in to comment.