Skip to content

Commit

Permalink
after merge with kym for manuscript
Browse files Browse the repository at this point in the history
  • Loading branch information
cudmore committed Jan 15, 2024
1 parent 6e8533a commit bc8560f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sanpy/interface/sanpy_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,16 @@ def openSanPyWindow(self, path=None, sweep=None, spikeNumber=None):

# only set sweep and select spike if
# we opened a file path
if os.path.isfile(path):
if sweep is not None:
# _ba = foundWindow.get_bAnalysis()
# foundWindow.slot_selectSweep(_ba, sweep)
foundWindow.selectSweep_external(sweep)

if spikeNumber is not None:
# foundWindow.slot_selectSpike(sDict)
foundWindow.selectSpike(spikeNumber, doZoom=False)
if path is not None:
if os.path.isfile(path):
if sweep is not None:
# _ba = foundWindow.get_bAnalysis()
# foundWindow.slot_selectSweep(_ba, sweep)
foundWindow.selectSweep_external(sweep)

if spikeNumber is not None:
# foundWindow.slot_selectSpike(sDict)
foundWindow.selectSpike(spikeNumber, doZoom=False)

# add to recent opened windows
if path is not None:
Expand Down

0 comments on commit bc8560f

Please sign in to comment.