cubevis 0.5.15__py3-none-any.whl → 0.5.17__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/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.5.15'
1
+ __version__ = '0.5.17'
@@ -41,10 +41,10 @@ from bokeh.io import reset_output as reset_bokeh_output
41
41
  from bokeh.io import output_notebook
42
42
  from bokeh.models.dom import HTML
43
43
  from bokeh.models.ui.tooltips import Tooltip
44
- from ..utils import resource_manager, reset_resource_manager, is_notebook
45
- from ..data import casaimage
46
- from ..bokeh.models import TipButton, Tip
47
- from ..utils import ContextMgrChain as CMC
44
+ from cubevis.utils import resource_manager, reset_resource_manager, is_notebook
45
+ from cubevis.data import casaimage
46
+ from cubevis.bokeh.models import TipButton, Tip
47
+ from cubevis.utils import ContextMgrChain as CMC
48
48
 
49
49
  class CreateMask:
50
50
  '''Class that can be used to launch a createmask GUI with ``CreateMask('test.im','mask.im')( )``.
@@ -53,7 +53,7 @@ class CreateMask:
53
53
  cube where each pixel is a 1 (masked) or a 0 (unmasked).
54
54
  '''
55
55
 
56
- def __stop( self ):
56
+ def __stop( self, _=None ):
57
57
  if not self.__result_future.done( ):
58
58
  self.__result_future.set_result(self.__retrieve_result( ))
59
59
 
@@ -310,7 +310,7 @@ class CreateMask:
310
310
  title='Spectrum' ) ] if imdetails['image-channels'] > 1 else [ ] ) +
311
311
  [ TabPanel( child=self._create_colormap_adjust(imdetails),
312
312
  title='Colormap' ),
313
- TabPanel( child=imdetails['gui']['cube'].statistics( ),
313
+ TabPanel( child=column( *imdetails['gui']['cube'].statistics( ) ),
314
314
  title='Statistics' ) ],
315
315
  width=500, sizing_mode='stretch_height', tabs_location='below' )
316
316
 
@@ -41,10 +41,10 @@ from bokeh.io import curdoc
41
41
  from bokeh.io import reset_output as reset_bokeh_output
42
42
  from bokeh.models.dom import HTML
43
43
  from bokeh.models.ui.tooltips import Tooltip
44
- from ..utils import resource_manager, reset_resource_manager, is_notebook
45
- from ..data import casaimage
46
- from ..bokeh.models import TipButton, Tip
47
- from ..utils import ContextMgrChain as CMC
44
+ from cubevis.utils import resource_manager, reset_resource_manager, is_notebook
45
+ from cubevis.data import casaimage
46
+ from cubevis.bokeh.models import TipButton, Tip
47
+ from cubevis.utils import ContextMgrChain as CMC
48
48
 
49
49
  class CreateRegion:
50
50
  '''Class that can be used to launch a createregion GUI with ``CreateRegion('test.im')( )``.
@@ -376,7 +376,7 @@ class CreateRegion:
376
376
  title='Spectrum' ) ] if imdetails['image-channels'] > 1 else [ ] ) +
377
377
  [ TabPanel( child=self._create_colormap_adjust(imdetails),
378
378
  title='Colormap' ),
379
- TabPanel( child=imdetails['gui']['cube'].statistics( ),
379
+ TabPanel( child=column( *imdetails['gui']['cube'].statistics( ) ),
380
380
  title='Statistics' ) ],
381
381
  width=500, sizing_mode='stretch_height', tabs_location='below' )
382
382
 
@@ -833,7 +833,7 @@ class InteractiveClean:
833
833
  body {
834
834
  counter-reset: section;
835
835
  }
836
- p:before {
836
+ p:not([data-skip]):before {
837
837
  font-weight: bold;
838
838
  counter-increment: section;
839
839
  content: "" counter(section) ": ";
@@ -842,7 +842,7 @@ class InteractiveClean:
842
842
  </head>
843
843
  <body>
844
844
  <h1>Interactive Clean History</h1>
845
- ` + elem.map((x) => `<p>${x}</p>`).join('\\n') + '</body>\\n</html>'
845
+ ` + elem.map((x) => x.startsWith('#') ? `<p data-skip>${x}</p>` : `<p>${x}</p>`).join('\\n') + '</body>\\n</html>'
846
846
  }
847
847
  let b = cb_obj.origin
848
848
  if ( ! b._window || b._window.closed ) {
@@ -2595,7 +2595,7 @@ class InteractiveClean:
2595
2595
  body {
2596
2596
  counter-reset: section;
2597
2597
  }
2598
- p:before {
2598
+ p:not([data-skip]):before {
2599
2599
  font-weight: bold;
2600
2600
  counter-increment: section;
2601
2601
  content: "" counter(section) ": ";
@@ -2604,7 +2604,7 @@ class InteractiveClean:
2604
2604
  </head>
2605
2605
  <body>
2606
2606
  <h1>Interactive Clean History</h1>
2607
- ` + elem.map((x) => `<p>${x}</p>`).join('\\n') + '</body>\\n</html>'
2607
+ ` + elem.map((x) => x.startsWith('#') ? `<p data-skip>${x}</p>` : `<p>${x}</p>`).join('\\n') + '</body>\\n</html>'
2608
2608
  }
2609
2609
  let b = cb_obj.origin
2610
2610
  if ( ! b._window || b._window.closed ) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cubevis
3
- Version: 0.5.15
3
+ Version: 0.5.17
4
4
  Summary: visualization toolkit and apps for casa
5
5
  License: LGPL
6
6
  Author-email: Darrell Schiebel <darrell@schiebel.us>,Pam Harris <pharris@nrao.edu>
@@ -71,10 +71,10 @@ cubevis/data/__init__.py,sha256=_j5cRA9l9Nl0ycL_SsbeLP1Uil_q1ldiVKJk5IeRFx8,77
71
71
  cubevis/data/casaimage/__init__.py,sha256=55ebo9hReK8DdnVDiFK25wYDGizQoRvjcKCIQCdgEck,3606
72
72
  cubevis/private/_gclean.py,sha256=ExdR6cRxSa6Xne2veGNKhbTtx-tXUIWr2htzEmEZ9Z4,41107
73
73
  cubevis/private/apps/__init__.py,sha256=NIC0XCfjInbAmteORFWtohMvq3Nf8EZ5bsvvUpDYSig,2679
74
- cubevis/private/apps/_createmask.py,sha256=bKFpME5MYhLh7HxlJZINBTwG25t0_T_d1nYrWYAWYPA,23527
75
- cubevis/private/apps/_createregion.py,sha256=ujLQeXl-afooRU0YLcJ43FMMDMU37SoHtuPJnwNHcEw,26667
76
- cubevis/private/apps/_interactiveclean.mustache,sha256=vjTBSI8BlB8CIopu4oydrgeleOAwCjqWCh3Rwr_AALA,103811
77
- cubevis/private/apps/_interactiveclean.py,sha256=pGywKaty1rjW5uGblY3Nj5G22lGaOBvDuOM_z560Yps,241462
74
+ cubevis/private/apps/_createmask.py,sha256=ErtBrOUq20_xZGXY4gw92lvs2D71SVxx5Osi-dNgW_I,23570
75
+ cubevis/private/apps/_createregion.py,sha256=z8vYIHfFWjIqg5_CECVFtF7wLhN7qFY8L09QB8UMfmU,26702
76
+ cubevis/private/apps/_interactiveclean.mustache,sha256=mh7ZL8tfh8yd_r_XrP5vX9J0vnHIt0ya7v7iVuM-l6I,103874
77
+ cubevis/private/apps/_interactiveclean.py,sha256=gds2IflBvP1JCsi2pl5ZndHLjGtPCP1lsbrAttEylW0,241525
78
78
  cubevis/private/apps/_interactiveclean_wrappers.py,sha256=XqyCGz33CMDhszTxnwZ_3-64GszUK1XYnGKUOxl9sas,5071
79
79
  cubevis/private/apps/_plotants.py,sha256=top6VWVd_sE48IVPH_sIg3_sQeDl5tadi5DL7r5tUEI,10823
80
80
  cubevis/private/apps/_plotbandpass.py,sha256=NwOgKSRnpLw9Pt3KIdBpoV78q1OnjCvj6lWFqeyICt8,185
@@ -105,8 +105,8 @@ cubevis/utils/_pkgs.py,sha256=mu2CCzndmJZYP81UkFhxveW_CisWLUvagJVolHOEVgM,2294
105
105
  cubevis/utils/_regions.py,sha256=TdAg4ZUUyhg3nFmX9_KLboqmc0LkyOdEW8M1WDR5Udk,1669
106
106
  cubevis/utils/_static.py,sha256=rN-sqXNqQ5R2M3wmPHU1GPP5OTyyWQlUPRuimCrht-g,2347
107
107
  cubevis/utils/_tiles.py,sha256=A9W1X61VOhBMTOKXVajzOIoiV2FBdO5N2SFB9SUpDOo,7336
108
- cubevis/__version__.py,sha256=AY1ui0mbvXZlpcjpLjHFuQpAuauOU39eXGAyXwQEiy0,22
109
- cubevis-0.5.15.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
110
- cubevis-0.5.15.dist-info/METADATA,sha256=gVDiVren7K70s3hkfcjp1zarq4_7g55-NS2XdI041FQ,2629
111
- cubevis-0.5.15.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
112
- cubevis-0.5.15.dist-info/RECORD,,
108
+ cubevis/__version__.py,sha256=Em5-OPRwxoWK5s2KUiqOonb8sv8mVgFnCcxesWc36yw,22
109
+ cubevis-0.5.17.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
110
+ cubevis-0.5.17.dist-info/METADATA,sha256=Td6jwGIkIuz5MGkuQ31wpQ2O1_QfHkNGuQYVXBjo6qE,2629
111
+ cubevis-0.5.17.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
112
+ cubevis-0.5.17.dist-info/RECORD,,