{"action":"created","issue":{"url":"https://api.github.com/repos/SeismicData/pyasdf/issues/50","repository_url":"https://api.github.com/repos/SeismicData/pyasdf","labels_url":"https://api.github.com/repos/SeismicData/pyasdf/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/SeismicData/pyasdf/issues/50/comments","events_url":"https://api.github.com/repos/SeismicData/pyasdf/issues/50/events","html_url":"https://github.com/SeismicData/pyasdf/issues/50","id":330598364,"node_id":"MDU6SXNzdWUzMzA1OTgzNjQ=","number":50,"title":"cannot add dictionaries with 'None' values in add_auxiliary_data","user":{"login":"fanfani","id":16723699,"node_id":"MDQ6VXNlcjE2NzIzNjk5","avatar_url":"https://avatars3.githubusercontent.com/u/16723699?v=4","gravatar_id":"","url":"https://api.github.com/users/fanfani","html_url":"https://github.com/fanfani","followers_url":"https://api.github.com/users/fanfani/followers","following_url":"https://api.github.com/users/fanfani/following{/other_user}","gists_url":"https://api.github.com/users/fanfani/gists{/gist_id}","starred_url":"https://api.github.com/users/fanfani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanfani/subscriptions","organizations_url":"https://api.github.com/users/fanfani/orgs","repos_url":"https://api.github.com/users/fanfani/repos","events_url":"https://api.github.com/users/fanfani/events{/privacy}","received_events_url":"https://api.github.com/users/fanfani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-08T10:06:34Z","updated_at":"2018-07-24T17:23:34Z","closed_at":null,"author_association":"NONE","body":"hello,\r\n\r\ni get an error when trying to add a dictionary containing `None` values in `parameters` with `add_auxiliary_data`\r\n\r\neverything works as expected if the `a` dictionary does not contain `None` values.\r\n\r\nam i missing something? is it a bug?\r\n\r\nhere's a transcript of a sample session:\r\n\r\n```\r\n$ python -c \"import pyasdf; pyasdf.print_sys_info()\"\r\npyasdf version 0.4.x\r\n===============================================================================\r\nCPython 2.7.9, compiler: GCC 4.9.2\r\nLinux 4.9.0-0.bpo.3-amd64 64bit\r\nMachine: x86_64, Processor:  with 24 cores\r\n===============================================================================\r\nHDF5 version 1.10.1, h5py version: 2.7.1\r\nMPI: MPICH, version: 3.1.0, mpi4py version: 3.0.0\r\nParallel I/O support: True\r\nProblematic multiprocessing: False\r\n===============================================================================\r\nOther_modules:\r\n\tdill: 0.2.6\r\n\tlxml: 3.4.0\r\n\tnumpy: 1.8.2\r\n\tobspy: 1.1.0\r\n\tprov: 1.5.0\r\n\tscipy: `0.14.0`\r\n\r\n$ asdf-validate UZ.A3150..HN.UZ-1984-0011.h5\r\nWARNING: No QuakeML found in the file.\r\nValid ASDF File!\r\n\r\n$ ipython\r\nIn [1]: import pyasdf\r\n\r\nIn [2]: import numpy as np\r\n\r\nIn [3]: data = np.random.random(100)\r\n\r\nIn [4]: data_type = \"RandomArrays\"\r\n\r\nIn [5]: path = \"example_array\"\r\n\r\nIn [6]: ds = pyasdf.ASDFDataSet('UZ.A3150..HN.UZ-1984-0011.h5')\r\n\r\nIn [7]: a= {u'user6': 'foo', u'user7': '', u'user4': None}\r\n\r\nIn [8]: ds.add_auxiliary_data(data=data, data_type=data_type, path=path, parameters=a)\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n\r\n[...]\r\n\r\nTypeError: Object dtype dtype('O') has no native HDF5 equivalent\r\n\r\nIn [9]: \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/SeismicData/pyasdf/issues/comments/407485454","html_url":"https://github.com/SeismicData/pyasdf/issues/50#issuecomment-407485454","issue_url":"https://api.github.com/repos/SeismicData/pyasdf/issues/50","id":407485454,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQ4NTQ1NA==","user":{"login":"fanfani","id":16723699,"node_id":"MDQ6VXNlcjE2NzIzNjk5","avatar_url":"https://avatars3.githubusercontent.com/u/16723699?v=4","gravatar_id":"","url":"https://api.github.com/users/fanfani","html_url":"https://github.com/fanfani","followers_url":"https://api.github.com/users/fanfani/followers","following_url":"https://api.github.com/users/fanfani/following{/other_user}","gists_url":"https://api.github.com/users/fanfani/gists{/gist_id}","starred_url":"https://api.github.com/users/fanfani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanfani/subscriptions","organizations_url":"https://api.github.com/users/fanfani/orgs","repos_url":"https://api.github.com/users/fanfani/repos","events_url":"https://api.github.com/users/fanfani/events{/privacy}","received_events_url":"https://api.github.com/users/fanfani/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T17:23:34Z","updated_at":"2018-07-24T17:23:34Z","author_association":"NONE","body":"...any news about this issue?"}}
{"actor":{"display_login":"fanfani"}}