Skip to content

Commit

Permalink
Allow analysis file input for instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Jul 18, 2024
1 parent 16a7861 commit 5e9ad22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dynapyt/run_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def instrument_dir(
start = directory
all_cmds = []

if isinstance(analysis, str) and Path(analysis).exists():
with open(analysis, "r") as f:
analysis = [ana.strip() for ana in f.read().split("\n")]

if use_external_dir:
external_path = Path(start) / "dynapyt_analysis"
# create new folder /dynapyt_analysis on same level as specified directory
Expand Down

0 comments on commit 5e9ad22

Please sign in to comment.