Update uvh5.py, pyuvdata throws error when converting to MS in prev. version#6
Open
joesbright wants to merge 1 commit into
Open
Update uvh5.py, pyuvdata throws error when converting to MS in prev. version#6joesbright wants to merge 1 commit into
joesbright wants to merge 1 commit into
Conversation
Contributor
|
Shotalot Joe! I'm hesitant to throw the baby out... need that "S4" string to represent the maximum string length still.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Error from pyuvdata is:
File "/mnt/buf0/jbright/BLRI_STAMP/uvh52ms.py", line 8, in
uv.read(inp)
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/uvdata/uvdata.py", line 11139, in read
self.read_uvh5(
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/uvdata/uvdata.py", line 9883, in read_uvh5
uvh5_obj.read_uvh5(filename, **kwargs)
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/uvdata/uvh5.py", line 1051, in read_uvh5
self._read_header(
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/uvdata/uvh5.py", line 680, in _read_header
self._read_header_with_fast_meta(filename, **kwargs)
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/uvdata/uvh5.py", line 502, in _read_header_with_fast_meta
self.telescope = Telescope.from_hdf5(
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/telescopes.py", line 863, in from_hdf5
setattr(tel_obj, tel_attr, getattr(meta, attr))
File "/usr/lib/python3.10/functools.py", line 981, in get
val = self.func(instance)
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/pyuvdata/utils/io/hdf5.py", line 677, in antenna_names
return np.char.decode(self.header["antenna_names"][:], encoding="utf8")
File "/mnt/buf0/jbright/BLRI_STAMP/BLRI_STAMP/lib/python3.10/site-packages/numpy/_core/strings.py", line 530, in decode
vec_string(a, np.object, 'decode', _clean_args(encoding, errors)),
TypeError: string operation on non-string array