vidavis 0.0.3__py3-none-any.whl → 0.0.5__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.
vidavis/__init__.py CHANGED
@@ -25,10 +25,8 @@
25
25
  # Charlottesville, VA 22903-2475 USA
26
26
  #
27
27
  ########################################################################
28
- '''vidavis provides a number of python applications to visualize
29
- visibility data'''
30
-
31
- import os as __os
28
+ '''vidavis provides python applications to visualize radio astronomy visibility
29
+ data'''
32
30
 
33
31
  try:
34
32
  from .__version__ import __version__
vidavis/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.0.3'
1
+ __version__ = '0.0.5'
vidavis/apps/__init__.py CHANGED
@@ -1,29 +1,3 @@
1
- ########################################################################
2
- #
3
- # Associated Universities, Inc. Washington DC, USA.
4
- #
5
- # This script is free software; you can redistribute it and/or modify it
6
- # under the terms of the GNU Library General Public License as published by
7
- # the Free Software Foundation; either version 2 of the License, or (at your
8
- # option) any later version.
9
- #
10
- # This library is distributed in the hope that it will be useful, but WITHOUT
11
- # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
- # License for more details.
14
- #
15
- # You should have received a copy of the GNU Library General Public License
16
- # along with this library; if not, write to the Free Software Foundation,
17
- # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18
- #
19
- # Correspondence concerning AIPS++ should be adressed as follows:
20
- # Internet email: casa-feedback@nrao.edu.
21
- # Postal address: AIPS++ Project Office
22
- # National Radio Astronomy Observatory
23
- # 520 Edgemont Road
24
- # Charlottesville, VA 22903-2475 USA
25
- #
26
- ########################################################################
27
1
  '''End user applications supplied by ``vidavis``.'''
28
2
 
29
3
  from ._ms_raster import MsRaster
@@ -10,7 +10,7 @@ import numpy as np
10
10
  import panel as pn
11
11
  from pandas import to_datetime
12
12
 
13
- from vidavis.bokeh.state._palette import available_palettes
13
+ from vidavis.bokeh._palette import available_palettes
14
14
  from vidavis.plot.ms_plot._time_ticks import get_time_formatter
15
15
  from vidavis.plot.ms_plot._ms_plot import MsPlot
16
16
  from vidavis.plot.ms_plot._ms_plot_constants import VIS_AXIS_OPTIONS, SPECTRUM_AXIS_OPTIONS, PS_SELECTION_OPTIONS, MS_SELECTION_OPTIONS
vidavis/bokeh/__init__.py CHANGED
@@ -1,29 +1,2 @@
1
- ########################################################################
2
- #
3
- # Copyright (C) 2021, 2022
4
- # Associated Universities, Inc. Washington DC, USA.
5
- #
6
- # This script is free software; you can redistribute it and/or modify it
7
- # under the terms of the GNU Library General Public License as published by
8
- # the Free Software Foundation; either version 2 of the License, or (at your
9
- # option) any later version.
10
- #
11
- # This library is distributed in the hope that it will be useful, but WITHOUT
12
- # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14
- # License for more details.
15
- #
16
- # You should have received a copy of the GNU Library General Public License
17
- # along with this library; if not, write to the Free Software Foundation,
18
- # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19
- #
20
- # Correspondence concerning AIPS++ should be adressed as follows:
21
- # Internet email: casa-feedback@nrao.edu.
22
- # Postal address: AIPS++ Project Office
23
- # National Radio Astronomy Observatory
24
- # 520 Edgemont Road
25
- # Charlottesville, VA 22903-2475 USA
26
- #
27
- ########################################################################
28
1
  '''This module contains the extensions and additions to the functionality
29
2
  provided by Bokeh'''
@@ -1,7 +1 @@
1
- '''
2
- Module to access MeasurementSet data using MsData class.
3
- '''
4
-
5
- from ._ms_data import (
6
- MsData
7
- )
1
+ ''' Module to access MeasurementSet data using MsData class. '''
@@ -1,35 +1,2 @@
1
- '''
2
- Module to access MeasurementSet data using xradio ProcessingSetXdt and Xarray objects.
3
- '''
4
-
5
- from ._ps_concat import (
6
- concat_ps_xdt,
7
- )
8
-
9
- from ._ps_coords import (
10
- set_coordinates,
11
- set_datetime_coordinate,
12
- set_index_coordinates,
13
- )
14
-
15
- from ._ps_data import (
16
- PsData,
17
- )
18
-
19
- from ._ps_io import (
20
- get_processing_set,
21
- )
22
-
23
- from ._ps_raster_data import (
24
- raster_data,
25
- )
26
-
27
- from ._ps_select import (
28
- select_ps,
29
- select_ms,
30
- )
31
-
32
- from ._xds_data import (
33
- get_axis_data,
34
- get_correlated_data,
35
- )
1
+ ''' Module to access MeasurementSet data using xradio ProcessingSetXdt and
2
+ Xarray objects. '''
@@ -34,10 +34,10 @@ def get_processing_set(ms_path, logger):
34
34
  if ext == ".zarr":
35
35
  zarr_path = ms_path
36
36
  else:
37
- if not __HAVE_CASACORE:
38
- raise RuntimeError("Cannot convert MSv2 to xradio zarr file: python-casacore not installed.")
39
37
  zarr_path = basename + ".ps.zarr"
40
38
  if not os.path.exists(zarr_path):
39
+ if not __HAVE_CASACORE:
40
+ raise RuntimeError("Cannot convert MSv2 to xradio zarr file: python-casacore not installed.")
41
41
  logger.info(f"Converting input MS {ms_path} to zarr {zarr_path}")
42
42
  convert_msv2_to_processing_set(
43
43
  in_file=ms_path,
vidavis/plot/__init__.py CHANGED
@@ -1 +1,2 @@
1
- ''' Module for plotting functions. Currently supports MeasurementSet Xarray plots only. '''
1
+ ''' Module for plotting functions. Currently supports MeasurementSetv4 Xarray
2
+ plots only. '''
@@ -1,29 +1 @@
1
1
  ''' This module contains classes and utilities to support MS plotting '''
2
-
3
- from ._ms_plot import MsPlot
4
-
5
- from ._ms_plot_constants import (
6
- SPECTRUM_AXIS_OPTIONS,
7
- UVW_AXIS_OPTIONS,
8
- VIS_AXIS_OPTIONS,
9
- WEIGHT_AXIS_OPTIONS,
10
- PS_SELECTION_OPTIONS,
11
- MS_SELECTION_OPTIONS,
12
- AGGREGATOR_OPTIONS,
13
- DEFAULT_UNFLAGGED_CMAP,
14
- DEFAULT_FLAGGED_CMAP,
15
- )
16
-
17
- from ._ms_plot_selectors import (
18
- file_selector,
19
- title_selector,
20
- style_selector,
21
- axis_selector,
22
- aggregation_selector,
23
- iteration_selector,
24
- selection_selector,
25
- plot_starter,
26
- )
27
-
28
- from ._raster_plot_inputs import check_inputs
29
- from ._raster_plot import RasterPlot
@@ -4,7 +4,7 @@ Create panel widgets for various functions
4
4
 
5
5
  import panel as pn
6
6
 
7
- from vidavis.bokeh.state._palette import available_palettes
7
+ from vidavis.bokeh._palette import available_palettes
8
8
  from vidavis.plot.ms_plot._ms_plot_constants import VIS_AXIS_OPTIONS, AGGREGATOR_OPTIONS, PS_SELECTION_OPTIONS, MS_SELECTION_OPTIONS, DEFAULT_UNFLAGGED_CMAP, DEFAULT_FLAGGED_CMAP
9
9
 
10
10
  def file_selector(description, start_dir, callback):
@@ -30,5 +30,3 @@
30
30
  from ._app_context import AppContext
31
31
 
32
32
  from ._logging import get_logger
33
-
34
- from ._static import static_vars, static_dir
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vidavis
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: Radio astronomy visibility data visualization
5
5
  License: LGPL
6
6
  Author-email: Darrell Schiebel <darrell@schiebel.us>,Pam Harris <pharris@nrao.edu>
@@ -1,37 +1,36 @@
1
1
  vidavis/LICENSE.rst,sha256=qzGpkvhDzf_MgF1PIn6rCmYPrcEhkfrBUchosLJj-U4,26371
2
- vidavis/__init__.py,sha256=k3gZarCQxuW9qtnnU06ERZrfW08AE6z0GheGQ9far3Y,1696
3
- vidavis/apps/__init__.py,sha256=Yjm30SyCmoV5E4HgkctsNMZwYAXuumJGYZU7eOjiDbU,1336
4
- vidavis/apps/_ms_raster.py,sha256=hILrhGrE48JaEZRfMQ3iDCzUU4WSQxpkOuVRr4LXJYk,45002
5
- vidavis/bokeh/__init__.py,sha256=XvuKcU9-bAv1CPb_O81VJTNLlHQC-zBg_Ig9_q4RkM4,1371
6
- vidavis/bokeh/state/__init__.py,sha256=TwXVPmEg2FAcBOJh1mdqRRhxjJvEyw6bnz0elEkToSg,1476
7
- vidavis/bokeh/state/_palette.py,sha256=gzfJHuUgqxd8hJpZe-gQPFTCPq9f5I8uLEkHAK5FNDM,2480
2
+ vidavis/__init__.py,sha256=nhvlqlYhl4NzFO2WPTYfhyZkNdpfkBUTUOgJWKCK4Tc,1681
3
+ vidavis/apps/__init__.py,sha256=ZQ5v1VFtjn3ztmuOHLOk5WbC1uLNIgL9rbHQ4v0zJwY,87
4
+ vidavis/apps/_ms_raster.py,sha256=A7KCJWW2-f6cONMTHjwFfHIqFhAJt00ophe1Zm2XX1E,44996
5
+ vidavis/bokeh/__init__.py,sha256=gdPPxBCe0enCSjvPFxkgMlhpVnAMFXKcw9GN28tVdXM,95
6
+ vidavis/bokeh/_palette.py,sha256=gzfJHuUgqxd8hJpZe-gQPFTCPq9f5I8uLEkHAK5FNDM,2480
8
7
  vidavis/data/__init__.py,sha256=-RDRe0PYK6vPlhdRV2Dy1vGbnDGoXWDATmfxaR-gXcE,48
9
- vidavis/data/measurement_set/__init__.py,sha256=5J5Um4LJD956RMYhm9rc_ZkrDzXZ_ixaJtX97k9ywV0,107
8
+ vidavis/data/measurement_set/__init__.py,sha256=7pnjaRYgQ88pydsMw1Z9sUiuO2udunRVnOJUZxjvaKQ,65
10
9
  vidavis/data/measurement_set/_ms_data.py,sha256=7ATsPbGFAv8WtWk_PRxlfoLdqapd6eMvnpYTgtdEDjE,7726
11
- vidavis/data/measurement_set/processing_set/__init__.py,sha256=34JvSyeSa1yeQ_WptnzPCvBxgWvWBOOLti6y7k2jvlE,523
10
+ vidavis/data/measurement_set/processing_set/__init__.py,sha256=TVQe5Nl4APCB2E1T1giAkOvSxg7OBNcOm9-BeZelY2Q,95
12
11
  vidavis/data/measurement_set/processing_set/_ps_concat.py,sha256=bCRsYFJQTp65QEAk_wGZQ2rZNkn6E3Gg2gKKFQfV5mw,3499
13
12
  vidavis/data/measurement_set/processing_set/_ps_coords.py,sha256=pdmojL-_55x3CjFcMIMuIqsI4ADG-TlLxc-RTgBQZC8,3640
14
13
  vidavis/data/measurement_set/processing_set/_ps_data.py,sha256=4-LXSk9ROnmWG8vZmSuBD7ObRIyNSTTfyjmYlULikpE,10767
15
- vidavis/data/measurement_set/processing_set/_ps_io.py,sha256=i-YkHEOPpqLLbUv6Gd29EQfJfq_Hgs0055vDwc3Hmbo,1709
14
+ vidavis/data/measurement_set/processing_set/_ps_io.py,sha256=VeNi-s1hozgCAGAGHs4NUXtlVFwUh-mkqrY9iYWOfW4,1717
16
15
  vidavis/data/measurement_set/processing_set/_ps_raster_data.py,sha256=6mU_V68lvJvIktEuyE5tWlyj7GaRmOnkCWSjHXc5lWs,7249
17
16
  vidavis/data/measurement_set/processing_set/_ps_select.py,sha256=GhAPxZ5mwvmUhCqKETVkhecjbwfrtDAG7-ibM19GDg0,10831
18
17
  vidavis/data/measurement_set/processing_set/_ps_stats.py,sha256=4uLImKCANXLUM8jO8nFbBFMwfusS-JjsZ0ttbDFPrSE,8166
19
18
  vidavis/data/measurement_set/processing_set/_xds_data.py,sha256=qLO2VkLINkSAQ7CGRFmpWQYpHrP4XoJJkwA4pp9DO8M,5253
20
- vidavis/plot/__init__.py,sha256=nlvKDuKy4s5nufpoYINzZW5kf1MIcmheAnzo82i-GXo,93
21
- vidavis/plot/ms_plot/__init__.py,sha256=f2okSBxRB-GgdiJGUE5ZfPgKY2_dzDkGfX91GxRUE94,658
19
+ vidavis/plot/__init__.py,sha256=thxe5vAGdpEiqoKPHLJoWUqKMVrUVx0ajpsGf5pVP98,95
20
+ vidavis/plot/ms_plot/__init__.py,sha256=wY0_7gY9M6K1D6tKQsr89L_uSs3seJlD-uicx7dx5Mo,74
22
21
  vidavis/plot/ms_plot/_ms_plot.py,sha256=pS-l6-cxmnsIa4Dm-yyPkgimh7sFSl6qBIpXxK9HV_Y,11414
23
22
  vidavis/plot/ms_plot/_ms_plot_constants.py,sha256=cX_TQhKJ3hJzPuRYmuRJxue1sjq82yl_ZN2_w6TshmI,930
24
- vidavis/plot/ms_plot/_ms_plot_selectors.py,sha256=S8zEpqiRfV6r5m1gSz8MdmMxKSmoqW-9U6YnYmbRVf4,10791
23
+ vidavis/plot/ms_plot/_ms_plot_selectors.py,sha256=BZQwARvMPdk78n6Rh2tOaSc8GenZBrxHZb14oFD9gJM,10785
25
24
  vidavis/plot/ms_plot/_raster_plot.py,sha256=lNa9i_eJ8F8Fc2zcHLRcaxKKOELk3x_QmXT__T76pg8,10999
26
25
  vidavis/plot/ms_plot/_raster_plot_inputs.py,sha256=vPjZPDuB26ENxwv4z7dUa_c5TqByXejScY6hqEnLFLU,4768
27
26
  vidavis/plot/ms_plot/_time_ticks.py,sha256=j-DcPh7RfGE8iX2bPjLQDQPIbiAbmjiEWQnKmdMWA3I,1773
28
27
  vidavis/plot/ms_plot/_xds_plot_axes.py,sha256=EeWvAbiKV33nEWdI8V3M0uwLTnycq4bFYBOyVWkxCu0,4429
29
- vidavis/toolbox/__init__.py,sha256=MoyrDjzcdMDDa7Rc5WyITD01DcpQ2_VdQEdB7g3Hg9c,1448
28
+ vidavis/toolbox/__init__.py,sha256=jqFa-eziVz_frNnXxwjJFK36qNpz1H38s-VlpBcq-R8,1402
30
29
  vidavis/toolbox/_app_context.py,sha256=H7gtF8RrAH46FqDcMobv3KM1Osbnapgu6aTG-m3VCWA,3049
31
30
  vidavis/toolbox/_logging.py,sha256=OEisrd8FM8VTNBMc7neLh9ekelf29ZILYB5pScebly0,2739
32
31
  vidavis/toolbox/_static.py,sha256=HJLMtClppgOJXWAtV6Umn5EqN80u0oZiIouQ1JsB9PM,2346
33
- vidavis/__version__.py,sha256=kQOJvtmpbHGE0oVJv6oubUfigE6lAOQFBGPyh3SkWZI,21
34
- vidavis-0.0.3.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
35
- vidavis-0.0.3.dist-info/METADATA,sha256=aYakK6qhQatXmw7Eu3lY40QfIY8KFRRomTejlAQXMOo,2850
36
- vidavis-0.0.3.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
37
- vidavis-0.0.3.dist-info/RECORD,,
32
+ vidavis/__version__.py,sha256=0Uc3zDF9XadX9j08cOIZbGoZsI0JPHTxemWum3gkos4,21
33
+ vidavis-0.0.5.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
34
+ vidavis-0.0.5.dist-info/METADATA,sha256=sxHI7zSrrwDcnRaaeZLSmqyDRRsHM-5hSBrHzB-g5TQ,2850
35
+ vidavis-0.0.5.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
36
+ vidavis-0.0.5.dist-info/RECORD,,
@@ -1,31 +0,0 @@
1
- ########################################################################
2
- #
3
- # Copyright (C) 2025
4
- # Associated Universities, Inc. Washington DC, USA.
5
- #
6
- # This script is free software; you can redistribute it and/or modify it
7
- # under the terms of the GNU Library General Public License as published by
8
- # the Free Software Foundation; either version 2 of the License, or (at your
9
- # option) any later version.
10
- #
11
- # This library is distributed in the hope that it will be useful, but WITHOUT
12
- # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14
- # License for more details.
15
- #
16
- # You should have received a copy of the GNU Library General Public License
17
- # along with this library; if not, write to the Free Software Foundation,
18
- # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19
- #
20
- # Correspondence concerning AIPS++ should be adressed as follows:
21
- # Internet email: casa-feedback@nrao.edu.
22
- # Postal address: AIPS++ Project Office
23
- # National Radio Astronomy Observatory
24
- # 520 Edgemont Road
25
- # Charlottesville, VA 22903-2475 USA
26
- #
27
- ########################################################################
28
- '''Bokeh state management functions (both within the Bokeh distribution
29
- and with the Bokeh extensions found in ``vidavis.bokeh``.'''
30
-
31
- from ._palette import available_palettes, find_palette, default_palette
File without changes