Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Dash-slicer depends on Python 3.6+ plus some [dependencies](requirements.txt).

```py
import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import imageio

Expand Down
1 change: 0 additions & 1 deletion dash_slicer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
dash_slicer - a volume slicer for Dash
"""


from .slicer import VolumeSlicer # noqa: F401


Expand Down
2 changes: 1 addition & 1 deletion dash_slicer/slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
import plotly.graph_objects
import dash
from dash.dependencies import Input, Output, State, ALL
from dash_core_components import Graph, Slider, Store, Interval
from dash.dcc import Graph, Slider, Store, Interval

from .utils import (
discrete_colors,
Expand Down
4 changes: 2 additions & 2 deletions examples/all_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import plotly.graph_objects as go
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash_slicer import VolumeSlicer
from dash.dependencies import Input, Output, State, ALL
import imageio
Expand Down
4 changes: 2 additions & 2 deletions examples/bring_your_own_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"""

import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
from dash_slicer import VolumeSlicer
import imageio
Expand Down
4 changes: 2 additions & 2 deletions examples/contrast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"""

import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
from dash_slicer import VolumeSlicer
import imageio
Expand Down
4 changes: 2 additions & 2 deletions examples/set_slicer_position_interactively.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import dash_core_components as dcc
from dash import dcc
from dash.dependencies import Input, Output
import imageio

Expand Down
4 changes: 2 additions & 2 deletions examples/set_slicer_position_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import dash_core_components as dcc
from dash import dcc
from dash.dependencies import Input, Output, ALL
import imageio

Expand Down
4 changes: 2 additions & 2 deletions examples/slicer_customized.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output, State
from dash_slicer import VolumeSlicer
import imageio
Expand Down
2 changes: 1 addition & 1 deletion examples/slicer_with_1_plus_2_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import imageio

Expand Down
2 changes: 1 addition & 1 deletion examples/slicer_with_1_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import imageio

Expand Down
2 changes: 1 addition & 1 deletion examples/slicer_with_2_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import imageio

Expand Down
4 changes: 2 additions & 2 deletions examples/slicer_with_3_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import plotly.graph_objects as go
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash_slicer import VolumeSlicer
from dash.dependencies import Input, Output, State, ALL
from skimage.measure import marching_cubes
Expand Down
4 changes: 2 additions & 2 deletions examples/threshold_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import plotly
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
from dash_slicer import VolumeSlicer
import imageio
Expand Down
4 changes: 2 additions & 2 deletions examples/threshold_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"""

import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
from dash_slicer import VolumeSlicer
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ pillow
numpy
plotly
dash
dash_core_components
2 changes: 1 addition & 1 deletion test_deploy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import dash
import dash_html_components as html
from dash import html
from dash_slicer import VolumeSlicer
import imageio

Expand Down
4 changes: 2 additions & 2 deletions tests/performance1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import plotly.graph_objects as go
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output, State
import imageio
from dash_slicer.utils import img_array_to_uri
Expand Down
4 changes: 2 additions & 2 deletions tests/performance2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import plotly.graph_objects as go
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash import html
from dash import dcc
from dash.dependencies import Input, Output, State
import imageio
from dash_slicer.utils import img_array_to_uri
Expand Down
2 changes: 1 addition & 1 deletion tests/test_slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from pytest import raises
import dash
import dash_core_components as dcc
from dash import dcc


def test_slicer_init():
Expand Down