Skip to content

Commit

Permalink
add atlas viewer as entrypoint command line: atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jul 25, 2023
1 parent 0ec4cb3 commit e3e5a90
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
17 changes: 14 additions & 3 deletions atlasview/atlasview.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class ControllerTopView(PgImageController):
"""
TopView ControllerTopView
"""
def __init__(self, qmain: TopView, res: int = 25, volume='image', brainmap='Allen'):
def __init__(self, qmain: TopView, res: int = 25, volume='image'):
super(ControllerTopView, self).__init__(qmain)
self.volume = volume
self.atlas = AllenAtlas(res)
Expand Down Expand Up @@ -363,9 +363,20 @@ class ImageLayer:


def view(res=25, title=None, brainmap='Allen'):
"""
"""
""" application entry point """
qt.create_app()
av = TopView._get_or_create(title=title, res=res, brainmap=brainmap)
av.show()
return av


def main():
""" application entry point """
app = QtWidgets.QApplication([])
w = TopView()
w.show()
app.exec_()


if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion atlasview/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

""" Roadmap
- swap volumes combox (label RGB option / density)
- overlay brain regions with transparency
- overlay brain regions with transparencye
- overlay volumes (for example coverage with transparency)
- overlay plots: probes channels
- tilted slices
Expand Down
Empty file added needles2/__init__.py
Empty file.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
version='0.1',
packages=find_packages(),
include_package_data=True,
install_requires=require
install_requires=require,
entry_points={
'console_scripts': [
'atlas=atlasview.atlasview:main',
]
},
)

0 comments on commit e3e5a90

Please sign in to comment.