diff --git a/pointCollection/data.py b/pointCollection/data.py index 8c74721..828e53a 100644 --- a/pointCollection/data.py +++ b/pointCollection/data.py @@ -885,7 +885,8 @@ def to_h5(self, fileOut=None, for key, val in meta_dict[out_field].items(): if key.lower() not in ['group','source_field','precision','dimensions']: if isinstance(val, str): - h5f_out[out_field_name.encode('ASCII')].attrs[key] = str(val).encode('utf-8') +# h5f_out[out_field_name.encode('ASCII')].attrs[key] = str(val).encode('utf-8') + h5f_out[out_field_name.encode('ASCII')].attrs.create(str(key), str(val).encode('utf-8'), None, dtype='