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.
Files changed (33) hide show
  1. {casaconfig-0.0.75/casaconfig.egg-info → casaconfig-0.0.77}/PKG-INFO +1 -1
  2. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/config.py +27 -4
  3. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/data_update.py +1 -1
  4. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/pull_data.py +1 -1
  5. {casaconfig-0.0.75 → casaconfig-0.0.77/casaconfig.egg-info}/PKG-INFO +1 -1
  6. {casaconfig-0.0.75 → casaconfig-0.0.77}/setup.py +1 -1
  7. {casaconfig-0.0.75 → casaconfig-0.0.77}/LICENSE +0 -0
  8. {casaconfig-0.0.75 → casaconfig-0.0.77}/MANIFEST.in +0 -0
  9. {casaconfig-0.0.75 → casaconfig-0.0.77}/README.md +0 -0
  10. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/__init__.py +0 -0
  11. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/__main__.py +0 -0
  12. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/__init__.py +0 -0
  13. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/casasiteconfig.py +0 -0
  14. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/config_defaults.py +0 -0
  15. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/config_defaults_static.py +0 -0
  16. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/data_available.py +0 -0
  17. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/do_pull_data.py +0 -0
  18. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_argparser.py +0 -0
  19. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_config.py +0 -0
  20. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_data_info.py +0 -0
  21. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/get_data_lock.py +0 -0
  22. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/io_redirect.py +0 -0
  23. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/measures_available.py +0 -0
  24. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/measures_update.py +0 -0
  25. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/print_log_messages.py +0 -0
  26. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/read_readme.py +0 -0
  27. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/set_casacore_path.py +0 -0
  28. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig/private/update_all.py +0 -0
  29. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/SOURCES.txt +0 -0
  30. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/dependency_links.txt +0 -0
  31. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/requires.txt +0 -0
  32. {casaconfig-0.0.75 → casaconfig-0.0.77}/casaconfig.egg-info/top_level.txt +0 -0
  33. {casaconfig-0.0.75 → casaconfig-0.0.77}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: casaconfig
3
- Version: 0.0.75
3
+ Version: 0.0.77
4
4
  Summary: CASA Operational Configuration Package
5
5
  Home-page: https://github.com/casangi/casaconfig
6
6
  Author: National Radio Astronomy Observatory
@@ -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
- __vlist = list(map(__os.path.expanduser, globals()[__v]))
108
- __vlist = list(map(__os.path.abspath,__vlist))
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
- globals()[__v] = __os.path.abspath(__os.path.expanduser(globals()[__v]))
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 is 'release':
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 is 'release':
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: casaconfig
3
- Version: 0.0.75
3
+ Version: 0.0.77
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.75',
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