diff --git a/atlasview/atlasview.py b/atlasview/atlasview.py index efb8d18..69b2675 100644 --- a/atlasview/atlasview.py +++ b/atlasview/atlasview.py @@ -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) @@ -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() diff --git a/atlasview/launcher.py b/atlasview/launcher.py index fecbabb..d45c3b8 100644 --- a/atlasview/launcher.py +++ b/atlasview/launcher.py @@ -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 diff --git a/needles2/__init__.py b/needles2/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index ef3f9ee..fcc00a5 100644 --- a/setup.py +++ b/setup.py @@ -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', + ] + }, )