Skip to content

Commit

Permalink
launch offline function
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Sep 3, 2024
1 parent 302c8c0 commit 9fbad04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions atlaselectrophysiology/ephys_atlas_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,14 @@ def viewer(probe_id, one=None, histology=False, spike_collection=None, title=Non
return av


def launch_offline():

app_off = QtWidgets.QApplication([])
mainapp_off = MainWindow(offline=True)
mainapp_off.show()
app_off.exec_()


if __name__ == '__main__':

import argparse
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
entry_points={
'console_scripts': [
'atlas=atlasview.atlasview:main',
'align=atlaselectrophysiology.ephys_atlas_gui:__main__',
'ephys-align=atlaselectrophysiology.ephys_atlas_gui:launch_offline',
]
},
)

0 comments on commit 9fbad04

Please sign in to comment.