Skip to content

Commit

Permalink
Fixed some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Sep 11, 2024
1 parent bc7bcd1 commit ac1053e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ def set_coverage(self, coverage_dir: str):

@lru_cache(maxsize=128)
def filtered(self, func, f, args):
docs = func.__doc__
if docs is None or START not in docs:
return False
if len(args) > 0:
sub_args = args
else:
Expand Down Expand Up @@ -135,14 +132,21 @@ def call_if_exists(self, f, *args):
if func is None:
continue
print(f"Calling {f} of {analysis}")
if f.startswith("__") and f.endswith("__"):
docs = func.__doc__
if docs is None or START not in docs:
is_filtered = False
elif f.startswith("__") and f.endswith("__"):
is_filtered = False
else:
args_for_filter = []
for arg in args[2:]:
if type(arg) is list or type(arg) is dict:
pass
else:
elif (
type(arg) is type(print)
or type(arg) is type(snake)
or type(arg) is type(self.set_coverage)
):
try:
hash(arg)
args_for_filter.append(arg)
Expand Down

0 comments on commit ac1053e

Please sign in to comment.