casaconfig 0.0.85__tar.gz → 0.0.89__tar.gz

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.
Files changed (36) hide show
  1. {casaconfig-0.0.85/casaconfig.egg-info → casaconfig-0.0.89}/PKG-INFO +1 -1
  2. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/__main__.py +4 -0
  3. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/data_available.py +6 -6
  4. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/data_update.py +17 -17
  5. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/do_auto_updates.py +7 -7
  6. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/do_pull_data.py +8 -8
  7. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/get_config.py +4 -4
  8. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/get_data_info.py +9 -9
  9. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/get_data_lock.py +6 -6
  10. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/measures_available.py +5 -5
  11. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/measures_update.py +19 -18
  12. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/print_log_messages.py +4 -4
  13. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/pull_data.py +14 -14
  14. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/read_readme.py +4 -4
  15. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/set_casacore_path.py +3 -3
  16. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/summary.py +3 -3
  17. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/update_all.py +5 -5
  18. {casaconfig-0.0.85 → casaconfig-0.0.89/casaconfig.egg-info}/PKG-INFO +1 -1
  19. {casaconfig-0.0.85 → casaconfig-0.0.89}/setup.py +1 -1
  20. {casaconfig-0.0.85 → casaconfig-0.0.89}/LICENSE +0 -0
  21. {casaconfig-0.0.85 → casaconfig-0.0.89}/MANIFEST.in +0 -0
  22. {casaconfig-0.0.85 → casaconfig-0.0.89}/README.md +0 -0
  23. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/__init__.py +0 -0
  24. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/config.py +0 -0
  25. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/CasaconfigErrors.py +0 -0
  26. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/__init__.py +0 -0
  27. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/casasiteconfig_example.py +0 -0
  28. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/config_defaults.py +0 -0
  29. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/config_defaults_static.py +0 -0
  30. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/get_argparser.py +0 -0
  31. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig/private/io_redirect.py +0 -0
  32. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig.egg-info/SOURCES.txt +0 -0
  33. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig.egg-info/dependency_links.txt +0 -0
  34. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig.egg-info/requires.txt +0 -0
  35. {casaconfig-0.0.85 → casaconfig-0.0.89}/casaconfig.egg-info/top_level.txt +0 -0
  36. {casaconfig-0.0.85 → casaconfig-0.0.89}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: casaconfig
3
- Version: 0.0.85
3
+ Version: 0.0.89
4
4
  Summary: CASA Operational Configuration Package
5
5
  Home-page: https://github.com/casangi/casaconfig
6
6
  Author: National Radio Astronomy Observatory
@@ -97,6 +97,10 @@ try:
97
97
  casaconfig.pull_data(measurespath,'release')
98
98
  # ignore all other options
99
99
  else:
100
+ # watch for nothing actually set
101
+ if not flags.updateall and not flags.pulldata and not flags.dataupdate and not flags.measuresupdate:
102
+ parser.print_help()
103
+ sys.exit(1)
100
104
  # the update options, update all does everything, no need to invoke anything else
101
105
  print("Checking for updates into %s" % measurespath)
102
106
  if flags.updateall:
@@ -29,15 +29,15 @@ def data_available():
29
29
  changing casaconfig functions that use those tarballs). The full filename is
30
30
  the casarundata version expected in casaconfig functions.
31
31
 
32
- Parameters:
32
+ Parameters
33
33
  None
34
34
 
35
- Returns:
36
- list: version names returned as list of strings
35
+ Returns
36
+ list - version names returned as list of strings
37
37
 
38
- Raises:
39
- casaconfig.RemoteError: Raised when there is an error fetching some remote content
40
- Exception: Unexpected exception while getting list of available casarundata versions
38
+ Raises
39
+ - casaconfig.RemoteError - Raised when there is an error fetching some remote content
40
+ - Exception - Unexpected exception while getting list of available casarundata versions
41
41
 
42
42
  """
43
43
 
@@ -94,26 +94,26 @@ def data_update(path=None, version=None, force=False, logger=None, auto_update_r
94
94
  **Note:** the most recent casarundata may not include the most recent measures data. A data_update
95
95
  is typically followed by a measures_update.
96
96
 
97
- Parameters:
98
- path (str=None): Folder path to update. Must contain a valid readme.txt. If not set then config.measurespath is used.
99
- version (str=None): Version of casarundata to retrieve (usually in the form of casarundata-x.y.z.tar.gz, see data_available()). Default None retrieves the latest.
100
- force (bool=False): If True, always re-download the casarundata. Default False will not download casarundata if updated within the past day unless the version parameter is specified and different from what was last downloaded.
101
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
102
- auto_update_rules (bool=False): If True then the user must be the owner of path, version must be None, and force must be False.
103
- verbose (int): Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
97
+ Parameters
98
+ - path (str=None) - Folder path to update. Must contain a valid readme.txt. If not set then config.measurespath is used.
99
+ - version (str=None) - Version of casarundata to retrieve (usually in the form of casarundata-x.y.z.tar.gz, see data_available()). Default None retrieves the latest.
100
+ - force (bool=False) - If True, always re-download the casarundata. Default False will not download casarundata if updated within the past day unless the version parameter is specified and different from what was last downloaded.
101
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
102
+ - auto_update_rules (bool=False) - If True then the user must be the owner of path, version must be None, and force must be False.
103
+ - verbose (int) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
104
104
 
105
- Returns:
105
+ Returns
106
106
  None
107
107
 
108
- Raises:
109
- AutoUpdatesNotAllowed : raised when path does not exist as a directory or is not owned by the user
110
- BadLock : raised when the lock file was not empty when an attempt was made to obtain the lock
111
- BadReadme : raised when the readme.txt file at path did not contain the expected list of installed files or was incorrectly formatted
112
- NoReadme : raised when the readme.txt file is not found at path (path also may not exist)
113
- NotWritable : raised when the user does not have permission to write to path
114
- RemoteError : raised by data_available when the list of available data versions could not be fetched
115
- UnsetMeasurespath : raised when path is None and measurespath has not been set in config.
116
- Exception: raised when there was an unexpected exception while populating path
108
+ Raises
109
+ - casaconfig.AutoUpdatesNotAllowed - raised when path does not exist as a directory or is not owned by the user
110
+ - casaconfig.BadLock - raised when the lock file was not empty when an attempt was made to obtain the lock
111
+ - casaconfig.BadReadme - raised when the readme.txt file at path did not contain the expected list of installed files or was incorrectly formatted
112
+ - casaconfig.NoReadme - raised when the readme.txt file is not found at path (path also may not exist)
113
+ - casaconfig.NotWritable - raised when the user does not have permission to write to path
114
+ - casaconfig.RemoteError - raised by data_available when the list of available data versions could not be fetched
115
+ - casaconfig.UnsetMeasurespath - raised when path is None and measurespath has not been set in config.
116
+ - Exception - raised when there was an unexpected exception while populating path
117
117
 
118
118
  """
119
119
 
@@ -39,16 +39,16 @@ def do_auto_updates(configDict, logger=None, verbose=None):
39
39
 
40
40
  See data_update and measures_update for additional details about exceptions
41
41
 
42
- Paramters:
43
- configDict (dict): A config dictionary previously set.
44
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
45
- verbose (int): Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
42
+ Paramters
43
+ - configDict (dict) - A config dictionary previously set.
44
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
45
+ - verbose (int) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
46
46
 
47
- Returns:
47
+ Returns
48
48
  None
49
49
 
50
- Raises:
51
- UnsetMeasurespath: raised when measurespath is None in config
50
+ Raises
51
+ - casaconfig.UnsetMeasurespath - raised when measurespath is None in config
52
52
 
53
53
  """
54
54
 
@@ -23,15 +23,15 @@ def do_pull_data(path, version, installed_files, currentVersion, currentDate, lo
23
23
  calling function has already examined any existing readme file and used that
24
24
  to set the installed_files list as appropriate.
25
25
 
26
- Parameters:
27
- path (str): Folder path to place casadata contents.
28
- version (str): casadata version to retrieve.
29
- installed_files (str list): list of installed files from the version already installed. Set to an empty list if there is no previously installed version.
30
- currentVersion (str): from the readme file if it already exists, or an empty string if there is no previously installed version.
31
- currentDate (str): from the readme file if it already exists, or an empty string if there is no previously installed version.
32
- logger (casatools.logsink): Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Set to None to skip writing messages to a logger.
26
+ Parameters
27
+ - path (str) - Folder path to place casadata contents.
28
+ - version (str) - casadata version to retrieve.
29
+ - installed_files (str list) - list of installed files from the version already installed. Set to an empty list if there is no previously installed version.
30
+ - currentVersion (str) - from the readme file if it already exists, or an empty string if there is no previously installed version.
31
+ - currentDate (str) - from the readme file if it already exists, or an empty string if there is no previously installed version.
32
+ - logger (casatools.logsink) - Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Set to None to skip writing messages to a logger.
33
33
 
34
- Returns:
34
+ Returns
35
35
  None
36
36
 
37
37
  """
@@ -22,11 +22,11 @@ def get_config( default=False ):
22
22
 
23
23
  The default values (returned when default is True) are the configuration values after all config files have been evaluated but before the path values have been expanded using os.path.expanduser and os.path.abspath. Modules that use the command line to change config values may also not update the default values. User actions in a CASA session will also typically not change the default values.
24
24
 
25
- Parameters:
26
- default (bool=False): If True, return the default values.
25
+ Parameters
26
+ - default (bool=False) - If True, return the default values.
27
27
 
28
- Returns:
29
- list[str]: list of configuration strings
28
+ Returns
29
+ - list[str] - list of configuration strings
30
30
  """
31
31
 
32
32
  from .. import config as _config
@@ -70,17 +70,17 @@ def get_data_info(path=None, logger=None, type=None):
70
70
  If path has not been set (has a value of None) then the returned value will be None. This
71
71
  likely means that a casasiteconfig.py exists but has not yet been edited to set measurespath.
72
72
 
73
- Parameters:
74
- path (str): Folder path to find the casarundata and measures data information. If not set then config.measurespath is used.
75
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
76
- type (str): the specific type of data info to return (None, 'casarundata', 'measures', 'release'; None returns a dictionary of all types)
73
+ Parameters
74
+ - path (str) - Folder path to find the casarundata and measures data information. If not set then config.measurespath is used.
75
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
76
+ - type (str) - the specific type of data info to return (None, 'casarundata', 'measures', 'release'; None returns a dictionary of all types)
77
77
 
78
- Returns:
79
- dict: a dictionary by type, 'casarundata', 'measures', 'release' where each type is a dictionary containing 'version' and 'date'. A return value of None indicates path is unset. A value of None for that type means no information could be found about that type. If a specific type is requested then only the dictionary for that type is returned (or None if that type can not be found).
78
+ Returns
79
+ - a dictionary by type, 'casarundata', 'measures', 'release' where each type is a dictionary containing 'version' and 'date'. A return value of None indicates path is unset. A value of None for that type means no information could be found about that type. If a specific type is requested then only the dictionary for that type is returned (or None if that type can not be found).
80
80
 
81
- Raises:
82
- UnsetMeasurespath: path is None and has not been set in config
83
- ValueError: raised when type has an invalid value
81
+ Raises
82
+ - casaconfig.UnsetMeasurespath - path is None and has not been set in config
83
+ - ValueError - raised when type has an invalid value
84
84
 
85
85
  """
86
86
 
@@ -29,16 +29,16 @@ def get_data_lock(path, fn_name):
29
29
 
30
30
  This function is intended for internal casaconfig use.
31
31
 
32
- Parameters:
33
- path (str): The location where 'data_update.log' is to be found.
34
- fn_name (str): A string giving the name of the calling function to be recorded in the lock file.
32
+ Parameters
33
+ - path (str) - The location where 'data_update.log' is to be found.
34
+ - fn_name (str) - A string giving the name of the calling function to be recorded in the lock file.
35
35
 
36
36
  Returns:
37
- fd: the open file descriptor holding the lock. Close this file descriptor to release the lock.
37
+ - the open file descriptor holding the lock. Close this file descriptor to release the lock.
38
38
 
39
39
  Raises:
40
- BadLock: raised when the path to the lock file does not exist or the lock file is not empty as found
41
- Exception: an unexpected exception was seen while writing the lock information to the file
40
+ - casaconfig.BadLock - raised when the path to the lock file does not exist or the lock file is not empty as found
41
+ - Exception - an unexpected exception was seen while writing the lock information to the file
42
42
 
43
43
  """
44
44
 
@@ -25,15 +25,15 @@ def measures_available():
25
25
  of the values in that list if set (otherwise the most recent version
26
26
  in this list is used).
27
27
 
28
- Parameters:
28
+ Parameters
29
29
  None
30
30
 
31
- Returns:
32
- list: version names returned as list of strings
31
+ Returns
32
+ version names returned as list of strings
33
33
 
34
34
  Raises:
35
- RemoteError: raised when when a socket.gaierror is seen, likely due to no network connection
36
- Exception: raised when any unexpected exception happens
35
+ - casaconfig.RemoteError - raised when when a socket.gaierror is seen, likely due to no network connection
36
+ - Exception: raised when any unexpected exception happens
37
37
 
38
38
  """
39
39
  from ftplib import FTP
@@ -102,26 +102,26 @@ def measures_update(path=None, version=None, force=False, logger=None, auto_upda
102
102
  is not empty or the readme.txt file can not be read. This use of force should be used
103
103
  with caution.
104
104
 
105
- Parameters:
106
- path (str=None): Folder path to place updated measures data. Must contain a valid geodetic/readme.txt. If not set then config.measurespath is used.
107
- version (str=None): Version of measures data to retrieve (usually in the form of yyyymmdd-160001.ztar, see measures_available()). Default None retrieves the latest.
108
- force (bool=False): If True, always re-download the measures data. Default False will not download measures data if updated within the past day unless the version parameter is specified and different from what was last downloaded.
109
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Default None writes messages to the terminal
110
- auto_update_rules (bool=False): If True then the user must be the owner of path, version must be None, and force must be False.
111
- verbose (int=None): Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in config dictionary.
105
+ Parameters
106
+ - path (str=None) - Folder path to place updated measures data. Must contain a valid geodetic/readme.txt. If not set then config.measurespath is used.
107
+ - version (str=None) - Version of measures data to retrieve (usually in the form of yyyymmdd-160001.ztar, see measures_available()). Default None retrieves the latest.
108
+ - force (bool=False) - If True, always re-download the measures data. Default False will not download measures data if updated within the past day unless the version parameter is specified and different from what was last downloaded.
109
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Default None writes messages to the terminal
110
+ - auto_update_rules (bool=False) - If True then the user must be the owner of path, version must be None, and force must be False.
111
+ - verbose (int=None) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in config dictionary.
112
112
 
113
- Returns:
113
+ Returns
114
114
  None
115
115
 
116
- Raises:
117
- AutoUpdatesNotAllowed: raised when path does not exists as a directory or is not owned by the user when auto_update_rules is True
118
- BadLock: raised when the lock file was not empty when found
119
- BadReadme: raised when something unexpected is found in the readme or the readme changed after an update is in progress
120
- NoReadme : raised when the readme.txt file is not found at path (path also may not exist)
121
- NotWritable: raised when the user does not have permission to write to path
122
- RemoteError: raised by measures_available when the remote list of measures could not be fetched
123
- UnsetMeasurespath: raised when path is None and has not been set in config
124
- Exception: raised when something unexpected happened while updating measures
116
+ Raises
117
+ casaconfig.AutoUpdatesNotAllowed - raised when path does not exists as a directory or is not owned by the user when auto_update_rules is True
118
+ casaconfig.BadLock - raised when the lock file was not empty when found
119
+ casaconfig.BadReadme - raised when something unexpected is found in the readme or the readme changed after an update is in progress
120
+ casaconfig.NoReadme - raised when the readme.txt file is not found at path (path also may not exist)
121
+ casaconfig.NotWritable - raised when the user does not have permission to write to path
122
+ casaconfig.RemoteError - raised by measures_available when the remote list of measures could not be fetched
123
+ casaconfig.UnsetMeasurespath - raised when path is None and has not been set in config
124
+ Exception - raised when something unexpected happened while updating measures
125
125
 
126
126
  """
127
127
  import os
@@ -138,7 +138,7 @@ def measures_update(path=None, version=None, force=False, logger=None, auto_upda
138
138
  import fcntl
139
139
 
140
140
  from casaconfig import measures_available
141
- from casaconfig import AutoUpdatesNotAllowed, UnsetMeasurespath, RemoteError, NotWritable, BadReadme, BadLock
141
+ from casaconfig import AutoUpdatesNotAllowed, UnsetMeasurespath, RemoteError, NotWritable, BadReadme, BadLock, NoReadme
142
142
 
143
143
  from .print_log_messages import print_log_messages
144
144
  from .get_data_lock import get_data_lock
@@ -149,6 +149,7 @@ def measures_update(path=None, version=None, force=False, logger=None, auto_upda
149
149
  from .. import config as _config
150
150
  path = _config.measurespath
151
151
 
152
+ print("casaconfig.measures_update path = %s" % path)
152
153
  if path is None:
153
154
  raise UnsetMeasurespath('measures_update: path is None and has not been set in config.measurespath. Provide a valid path and retry.')
154
155
 
@@ -27,10 +27,10 @@ def print_log_messages(msg, logger, is_err=False, verbose=2):
27
27
  This function is intended for internal casaconfig use.
28
28
 
29
29
  Parameters
30
- msg (str): The message to print and optionally log.
31
- logger (casatools.logsink): Instance of the casalogger to use. Not used if None.
32
- is_err (bool=False): When False, output goes to sys.stdout and logged as INFO level. When True, output goes to sys.stderr and logged as SEVERE
33
- verbose (int=2): When < 2 then msg is only printed if there is no logger, otherwise it's just logged
30
+ - msg (str) - The message to print and optionally log.
31
+ - logger (casatools.logsink) - Instance of the casalogger to use. Not used if None.
32
+ - is_err (bool=False) - When False, output goes to sys.stdout and logged as INFO level. When True, output goes to sys.stderr and logged as SEVERE
33
+ - verbose (int=2) - When < 2 then msg is only printed if there is no logger, otherwise it's just logged
34
34
 
35
35
  Returns
36
36
  None
@@ -83,22 +83,22 @@ def pull_data(path=None, version=None, force=False, logger=None, verbose=None):
83
83
  what versions are available. There is no check on when the data were last updated before
84
84
  calling data_available (as there is in the two update functions).
85
85
 
86
- Parameters:
87
- path (str): Folder path to place casarundata contents. It must be empty or not exist or contain a valid, previously installed version. If not set then config.measurespath is used.
88
- version (str=None): casadata version to retrieve. Default None gets the most recent version.
89
- force (bool=False): If True, re-download and install the data even when the requested version matches what is already installed. Default False will not download data if the installed version matches the requested version.
90
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Default None does not write any messages to a logger.
91
- verbose (int): Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
92
-
93
- Returns:
86
+ Parameters
87
+ - path (str) - Folder path to place casarundata contents. It must be empty or not exist or contain a valid, previously installed version. If not set then config.measurespath is used.
88
+ - version (str=None) - casadata version to retrieve. Default None gets the most recent version.
89
+ - force (bool=False) - If True, re-download and install the data even when the requested version matches what is already installed. Default False will not download data if the installed version matches the requested version.
90
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Default None does not write any messages to a logger.
91
+ - verbose (int) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
92
+
93
+ Returns
94
94
  None
95
95
 
96
- Raises:
97
- BadLock: raised when the lock file is not empty when a lock is requested
98
- BadReadme: raised when the readme.txt file found at path does not contain the expected list of installed files or there was an unexpected change while the data lock is on
99
- NotWritable: raised when the user does not have write permission to path
100
- RemoteError : raised by data_available when the list of available data versions could not be fetched
101
- UnsetMeasurespath: raised when path is None and and measurespath has not been set in config.
96
+ Raises
97
+ - casaconfig.BadLock - raised when the lock file is not empty when a lock is requested
98
+ - casaconfig.BadReadme - raised when the readme.txt file found at path does not contain the expected list of installed files or there was an unexpected change while the data lock is on
99
+ - casaconfig.NotWritable - raised when the user does not have write permission to path
100
+ - casaconfig.RemoteError - raised by data_available when the list of available data versions could not be fetched
101
+ - casaconfig.UnsetMeasurespath - raised when path is None and and measurespath has not been set in config.
102
102
 
103
103
  """
104
104
 
@@ -29,11 +29,11 @@ def read_readme(path):
29
29
 
30
30
  The version string and date are stripped of leading and trailing whitespace.
31
31
 
32
- Parameters:
33
- path (str): the path to the file to be read
32
+ Parameters
33
+ - path (str) - the path to the file to be read
34
34
 
35
- Returns:
36
- dict: Dictionary of 'version' (the version string), 'date' (the date string),
35
+ Returns
36
+ Dictionary of 'version' (the version string), 'date' (the date string),
37
37
  'extra' (a list of any extra lines found). The return value is None on error.
38
38
  """
39
39
 
@@ -25,10 +25,10 @@ def set_casacore_path(path=None):
25
25
  the casacore data directory can be found by casacore users. It sets the value of that
26
26
  parameter to the casacore data location, replacing any previously set value.
27
27
 
28
- Parameters:
29
- path (string=None): path to the desired data directory. Default None uses the included data directory from this package
28
+ Parameters
29
+ - path (string=None) - path to the desired data directory. Default None uses the included data directory from this package
30
30
 
31
- Returns:
31
+ Returns
32
32
  None
33
33
 
34
34
  """
@@ -22,10 +22,10 @@ def summary(configDict = None):
22
22
  value of the measurespath config value is shown, the installed data versions are shown
23
23
  (casarundata and measures) and any release version information is shown.
24
24
 
25
- Parameters:
26
- configDict (dict): a config dictionary. If None this is imported from casaconfig.
25
+ Parameters
26
+ - configDict (dict) - a config dictionary. If None this is imported from casaconfig.
27
27
 
28
- Returns:
28
+ Returns
29
29
  None
30
30
 
31
31
  """
@@ -47,12 +47,12 @@ def update_all(path=None, logger=None, force=False, verbose=None):
47
47
  Use of update_all after CASA has started should typically be followed by a restart
48
48
  so that any changes are seen by the tools and tasks that use this data.
49
49
 
50
- Parameters:
51
- path (str=None): Folder path to place casarundata contents. It must not exist, or be empty, or contain a valid, previously installed version. If it exists, it must be owned by the user. Default None uses the value of measurespath set by importing config.py.
52
- logger (casatools.logsink=None): Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Default None does not write any messages to a logger.
53
- verbose (int): Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
50
+ Parameters
51
+ - path (str=None) - Folder path to place casarundata contents. It must not exist, or be empty, or contain a valid, previously installed version. If it exists, it must be owned by the user. Default None uses the value of measurespath set by importing config.py.
52
+ - logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Messages are always written to the terminal. Default None does not write any messages to a logger.
53
+ - verbose (int) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
54
54
 
55
- Returns:
55
+ Returns
56
56
  None
57
57
 
58
58
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: casaconfig
3
- Version: 0.0.85
3
+ Version: 0.0.89
4
4
  Summary: CASA Operational Configuration Package
5
5
  Home-page: https://github.com/casangi/casaconfig
6
6
  Author: National Radio Astronomy Observatory
@@ -6,7 +6,7 @@ with open('README.md', "r") as fid: #encoding='utf-8'
6
6
 
7
7
  setup(
8
8
  name='casaconfig',
9
- version='0.0.85',
9
+ version='0.0.89',
10
10
  description='CASA Operational Configuration Package',
11
11
  long_description=long_description,
12
12
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes