Closed eleonorazari closed 3 years ago
There was a typo in five_plates. I have a pull request (sdss/five_plates#33) in now to fix this. I will update this issue as soon as it is accepted!
PR was accepted! Just go a new pull of the five_plates repo and you should be good to go!
Perfect, thanks!
Hi Jon, I am vetting BHM_03 with five_plates. Everything is fine except when I give this command:
observed = ob_targets.assigned_in(platerun_bhm3) obs = ob_targets.data[observed]
which returns:
Please be patient. Initial target loading can take up to 1 second per field. Loading target data from 18 Fields...
AttributeError Traceback (most recent call last) ~/ppv/src/ppv/fiveplates.py in targets(self) 433 try: --> 434 return self._targets 435 except AttributeError:
AttributeError: 'Platerun' object has no attribute '_targets'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last) ~/ppv/src/ppv/fiveplates.py in targets(self) 267 try: --> 268 return self._plateinput 269 except AttributeError:
AttributeError: 'Field' object has no attribute '_plateinput'
During handling of the above exception, another exception occurred:
MergeConflictError Traceback (most recent call last) ~/anaconda3/envs/ppv/lib/python3.8/site-packages/astropy/table/operations.py in _vstack(arrays, join_type, col_name_map, metadata_conflicts) 1299 try: -> 1300 col = col_cls.info.new_like(cols, n_rows, metadata_conflicts, out_name) 1301 except metadata.MergeConflictError as err:
~/anaconda3/envs/ppv/lib/python3.8/site-packages/astropy/table/column.py in new_like(self, cols, length, metadata_conflicts, name) 326 """ --> 327 attrs = self.merge_cols_attributes(cols, metadata_conflicts, name, 328 ('meta', 'unit', 'format', 'description'))
~/anaconda3/envs/ppv/lib/python3.8/site-packages/astropy/utils/data_info.py in merge_cols_attributes(cols, metadata_conflicts, name, attrs) 675 # Output dtype is the superset of all dtypes in in_cols --> 676 out['dtype'] = metadata.common_dtype(cols) 677
~/anaconda3/envs/ppv/lib/python3.8/site-packages/astropy/utils/metadata.py in common_dtype(arrs) 64 tme._incompat_types = incompat_types ---> 65 raise tme 66
MergeConflictError: Arrays have incompatible types ['int64', 'object', 'object', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'int64']
During handling of the above exception, another exception occurred:
TableMergeError Traceback (most recent call last)