Skip to content

Commit

Permalink
profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
mlupei committed Feb 5, 2024
1 parent 137dc9b commit 5ac0214
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/runTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Badge Action
uses: emibcn/[email protected]
- name: profiling
run: cat yacht.pclprof

1 change: 1 addition & 0 deletions env/yacht_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ dependencies:
- sourmash_plugin_branchwater
- pip:
- openpyxl
- line-profiler-pycharm
2 changes: 2 additions & 0 deletions yacht/make_training_data_from_sketches.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import shutil
from . import utils
from line_profiler_pycharm import profile

# Configure Loguru logger
logger.remove()
Expand All @@ -26,6 +27,7 @@ def add_arguments(parser):
parser.add_argument('--outdir', type=str, help='Path to output directory.', required=False, default=os.getcwd())
parser.add_argument('--force', action='store_true', help='Overwrite the output directory if it exists.')

@profile
def main(args):
# get the arguments
ref_file = str(Path(args.ref_file).absolute())
Expand Down

0 comments on commit 5ac0214

Please sign in to comment.