cubevis 0.5.18__py3-none-any.whl → 0.5.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cubevis might be problematic. Click here for more details.
- cubevis/__init__.py +24 -2
- cubevis/__version__.py +1 -1
- cubevis/exe/__init__.py +4 -0
- cubevis/exe/_context.py +126 -0
- cubevis/exe/_mode.py +7 -0
- cubevis/exe/_setting.py +4 -0
- cubevis/exe/_task.py +230 -0
- cubevis/private/apps/_createmask.py +2 -2
- cubevis/private/apps/_createregion.py +2 -2
- cubevis/private/apps/_interactiveclean.mustache +17 -1426
- cubevis/private/apps/_interactiveclean.py +17 -1426
- cubevis/toolbox/__init__.py +1 -0
- cubevis/toolbox/_cube.py +2 -2
- cubevis/toolbox/_interactive_clean_ui.mustache +1499 -0
- cubevis/toolbox/_interactive_clean_ui.py +1498 -0
- cubevis/utils/__init__.py +1 -14
- cubevis/utils/_jupyter.py +92 -0
- {cubevis-0.5.18.dist-info → cubevis-0.5.20.dist-info}/METADATA +1 -1
- {cubevis-0.5.18.dist-info → cubevis-0.5.20.dist-info}/RECORD +22 -14
- /cubevis/{private/apps → toolbox}/_interactiveclean_wrappers.py +0 -0
- {cubevis-0.5.18.dist-info → cubevis-0.5.20.dist-info}/WHEEL +0 -0
- {cubevis-0.5.18.dist-info → cubevis-0.5.20.dist-info}/licenses/LICENSE +0 -0
cubevis/toolbox/__init__.py
CHANGED
cubevis/toolbox/_cube.py
CHANGED
|
@@ -54,7 +54,7 @@ from cubevis.bokeh.sources import ImageDataSource, ImagePipe, DataPipe
|
|
|
54
54
|
from cubevis.bokeh.format import WcsTicks
|
|
55
55
|
from cubevis.bokeh.models import EditSpan
|
|
56
56
|
from ..data import casaimage
|
|
57
|
-
from ..utils import pack_arrays, find_ws_address, set_attributes, resource_manager, polygon_indexes,
|
|
57
|
+
from ..utils import pack_arrays, find_ws_address, set_attributes, resource_manager, polygon_indexes, is_interactive_jupyter
|
|
58
58
|
from ..bokeh.models import EvTextInput
|
|
59
59
|
from ..bokeh.tools import CBResetTool
|
|
60
60
|
from ..bokeh.state import available_palettes, find_palette, default_palette
|
|
@@ -100,7 +100,7 @@ class CubeMask:
|
|
|
100
100
|
self.COUNT = 1
|
|
101
101
|
self.CCOUNT = 1
|
|
102
102
|
|
|
103
|
-
self._is_notebook =
|
|
103
|
+
self._is_notebook = is_interactive_jupyter()
|
|
104
104
|
#self._color = '#00FF00' # anti-green user feedback (issue #40 2024-05-02 13:08:32)
|
|
105
105
|
self._region_style=dict( fill_alpha=0, hover_fill_alpha=0.3,
|
|
106
106
|
fill_color='white', hover_fill_color='white',
|