Created
April 12, 2016 14:19
-
-
Save meredith-durbin/c0a61efc0350672b944dc14057e2ae6a to your computer and use it in GitHub Desktop.
This file contains 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
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
<ipython-input-64-2f4c8a8b7a02> in <module>() | |
----> 1 join(gd_n, gd_s) | |
/Users/mdurbin/anaconda2/lib/python2.7/site-packages/astropy/table/operations.pyc in join(left, right, keys, join_type, uniq_col_name, table_names, metadata_conflicts) | |
187 # these methods for custom merge behavior. | |
188 _merge_col_meta(out, [left, right], col_name_map, metadata_conflicts=metadata_conflicts) | |
--> 189 _merge_table_meta(out, [left, right], metadata_conflicts=metadata_conflicts) | |
190 | |
191 return out | |
/Users/mdurbin/anaconda2/lib/python2.7/site-packages/astropy/table/operations.pyc in _merge_table_meta(out, tables, metadata_conflicts) | |
98 out_meta = deepcopy(tables[0].meta) | |
99 for table in tables[1:]: | |
--> 100 out_meta = metadata.merge(out_meta, table.meta, metadata_conflicts=metadata_conflicts) | |
101 out.meta.update(out_meta) | |
102 | |
/Users/mdurbin/anaconda2/lib/python2.7/site-packages/astropy/utils/metadata.pyc in merge(left, right, merge_func, metadata_conflicts) | |
97 elif right[key] is None: | |
98 out[key] = left[key] | |
---> 99 elif left[key] != right[key]: | |
100 if metadata_conflicts == 'warn': | |
101 warnings.warn('Cannot merge meta key {0!r} types {1!r} and {2!r}, choosing {0}={3!r}' | |
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() | |
In [62]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment