casaconfig 0.0.75__tar.gz → 0.0.77__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.
- {casaconfig-0.0.75/casaconfig.egg-info → casaconfig-0.0.77}/PKG-INFO +1 -1
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/config.py +27 -4
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/data_update.py +1 -1
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/pull_data.py +1 -1
- {casaconfig-0.0.75 → casaconfig-0.0.77/casaconfig.egg-info}/PKG-INFO +1 -1
- {casaconfig-0.0.75 → casaconfig-0.0.77}/setup.py +1 -1
- {casaconfig-0.0.75 → casaconfig-0.0.77}/LICENSE +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/MANIFEST.in +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/README.md +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/__init__.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/__main__.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/__init__.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/casasiteconfig.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/config_defaults.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/config_defaults_static.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/data_available.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/do_pull_data.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_argparser.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_config.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_data_info.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_data_lock.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/io_redirect.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/measures_available.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/measures_update.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/print_log_messages.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/read_readme.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/set_casacore_path.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/update_all.py +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/SOURCES.txt +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/dependency_links.txt +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/requires.txt +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/top_level.txt +0 -0
- {casaconfig-0.0.75 → casaconfig-0.0.77}/setup.cfg +0 -0
@@ -104,12 +104,35 @@ for __v in __defaults:
|
|
104
104
|
if (__v in __path_names) :
|
105
105
|
# expand ~ or ~user constructs and make sure they are absolute paths
|
106
106
|
if (type(globals()[__v]) is list) :
|
107
|
-
|
108
|
-
|
107
|
+
# None values cause problems with expanduser, do these individually
|
108
|
+
# None values aren't useful in a list, don't carry them forward
|
109
|
+
__vlist = []
|
110
|
+
for __vval in globals()[__v]:
|
111
|
+
if __vval is not None:
|
112
|
+
__vval = __os.path.abspath(__os.path.expanduser(__vval))
|
113
|
+
__vlist.append(__vval)
|
114
|
+
else:
|
115
|
+
# debugging for now
|
116
|
+
print("None value seen in config parameter list %s, skipped" % __v)
|
117
|
+
print("__loaded_config_files : ")
|
118
|
+
for __f in __loaded_config_files:
|
119
|
+
print(" %s" % __f)
|
120
|
+
|
109
121
|
globals()[__v] = __vlist
|
110
122
|
else:
|
111
|
-
|
112
|
-
|
123
|
+
# watch for None values here (possibly also in the list, but just here for now)
|
124
|
+
if globals()[__v] is not None:
|
125
|
+
globals()[__v] = __os.path.abspath(__os.path.expanduser(globals()[__v]))
|
126
|
+
else:
|
127
|
+
# debugging for now
|
128
|
+
print("None value seen while expanding path-like fields for config parameter %s" % __v)
|
129
|
+
print("__loaded_config_files : ")
|
130
|
+
for __f in __loaded_config_files:
|
131
|
+
print(" %s" % __f)
|
132
|
+
print("__config_files : ")
|
133
|
+
for __f in __config_files:
|
134
|
+
print(" %s" % __f)
|
135
|
+
|
113
136
|
def load_success( ):
|
114
137
|
return __loaded_config_files
|
115
138
|
def load_failure( ):
|
@@ -173,7 +173,7 @@ def data_update(path=None, version=None, force=False, logger=None, auto_update_r
|
|
173
173
|
requestedVersion = available_data[-1]
|
174
174
|
|
175
175
|
expectedMeasuresVersion = None
|
176
|
-
if requestedVersion
|
176
|
+
if requestedVersion == 'release':
|
177
177
|
# use the release version from get_data_info
|
178
178
|
releaseInfo = get_data_info()['release']
|
179
179
|
if releaseInfo is None:
|
@@ -154,7 +154,7 @@ def pull_data(path=None, version=None, force=False, logger=None):
|
|
154
154
|
version = available_data[-1]
|
155
155
|
|
156
156
|
expectedMeasuresVersion = None
|
157
|
-
if version
|
157
|
+
if version == 'release':
|
158
158
|
# use the release version from get_data_info
|
159
159
|
releaseInfo = get_data_info()['release']
|
160
160
|
if releaseInfo is None:
|
@@ -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.
|
9
|
+
version='0.0.77',
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|