Skip to content

Commit

Permalink
added new profiler script (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdelgrosso committed Jun 9, 2020
1 parent 5ed8a1e commit f57b9bf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/dependency_graph/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.dot
*.svg
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions scripts/profiler/profile_pipeline.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
py-spy top -- python run_pipeline.py
12 changes: 12 additions & 0 deletions scripts/profiler/run_pipeline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from pathlib import Path
import suite2p
from tempfile import TemporaryDirectory

ops = suite2p.default_ops()
ops['nplanes'] = 2
ops['nchannels'] = 2

data_path = Path(__file__).joinpath('../../../data/test_data')
ops['data_path'] = [str(data_path)]
ops['save_path0'] = TemporaryDirectory().name
suite2p.run_s2p(ops)

0 comments on commit f57b9bf

Please sign in to comment.