Skip to content

Commit

Permalink
coordinate system along spline
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Sep 28, 2021
1 parent f8b6bf8 commit e40fa0e
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 74 deletions.
2 changes: 1 addition & 1 deletion mtprops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.3.1"
__version__ = "0.3.2"

from .core import start, load
from .widget import MTProfiler
8 changes: 5 additions & 3 deletions mtprops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

def start(viewer:"napari.Viewer"=None):
if viewer is None:
viewer = napari.Viewer()
ip.gui.start()
viewer = ip.gui.viewer
mtprof = MTProfiler()
dock = viewer.window.add_dock_widget(mtprof, area="right", allowed_areas=["right"],
name="MT Profiler")
Expand All @@ -20,12 +21,13 @@ def load(df:str|pd.DataFrame,
if isinstance(df, str):
df = pd.read_csv(df)
if viewer is None:
viewer = napari.Viewer()
ip.gui.start()
viewer = ip.gui.viewer
mtprof = MTProfiler()
dock = viewer.window.add_dock_widget(mtprof, area="right", allowed_areas=["right"],
name="MT Profiler")
dock.setMinimumHeight(300)
mtprof._loader._imread(img)
mtprof._load_image()
mtprof.load_image()
mtprof._from_dataframe(df)
return mtprof
Loading

0 comments on commit e40fa0e

Please sign in to comment.