Skip to content

Commit

Permalink
Small changes before initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
uschmidt83 committed Jun 1, 2021
1 parent e99c0d2 commit e26cc93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
setup(
name='stardist-napari',
version=__version__,
description='StarDist for Napari',
description='Object Detection with Star-convex Shapes',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/stardist/stardist-napari',
author='Uwe Schmidt, Martin Weigert',
author_email='[email protected], [email protected]',
license='BSD 3-Clause License',
packages=find_packages(),
python_requires='>=3.6',
python_requires='>=3.7',

package_data={'stardist_napari': [ 'resources/*' ]},

Expand All @@ -34,9 +34,9 @@
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: BSD License',

'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',

'Framework :: napari',
],
Expand All @@ -45,6 +45,6 @@
'stardist>=0.7.0',
'tensorflow',
'napari>=0.4.8',
# 'magicgui>0.2.9'
'magicgui>=0.2.9'
],
)
9 changes: 3 additions & 6 deletions stardist_napari/_dock_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def progress(it, **kwargs):
# TODO: coordinates correct or need offset (0.5 or so)?
shapes = np.moveaxis(polys['coord'], 2,1)
layers.append((shapes, dict(name='StarDist polygons', shape_type='polygon',
edge_width=0.5, edge_color='yellow', face_color=[0,0,0,0], **lkwargs), 'shapes'))
edge_width=0.75, edge_color='yellow', face_color=[0,0,0,0], **lkwargs), 'shapes'))
return layers

# -------------------------------------------------------------------------
Expand Down Expand Up @@ -606,18 +606,15 @@ def restore_defaults(event=None):

# push 'call_button' and 'progress_bar' to bottom
layout = plugin.native.layout()
# TODO: temporary workaround for 'add_vertical_stretch' issue: insert fixed space instead of stretch
# layout.insertStretch(layout.count()-2)
layout.insertSpacing(22, 50)
layout.insertStretch(layout.count()-2)

return plugin



@napari_hook_implementation
def napari_experimental_provide_dock_widget():
return plugin_wrapper, {'name': 'StarDist'}
# return plugin_wrapper, dict(name='StarDist', add_vertical_stretch=False)
return plugin_wrapper, dict(name='StarDist', add_vertical_stretch=False)



Expand Down
2 changes: 1 addition & 1 deletion stardist_napari/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2021.05.00'
__version__ = '2021.6.1'

0 comments on commit e26cc93

Please sign in to comment.