{"action":"created","issue":{"url":"https://api.github.com/repos/gwpy/gwpy/issues/889","repository_url":"https://api.github.com/repos/gwpy/gwpy","labels_url":"https://api.github.com/repos/gwpy/gwpy/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/gwpy/gwpy/issues/889/comments","events_url":"https://api.github.com/repos/gwpy/gwpy/issues/889/events","html_url":"https://github.com/gwpy/gwpy/issues/889","id":357726532,"node_id":"MDU6SXNzdWUzNTc3MjY1MzI=","number":889,"title":"Writing .gwf files","user":{"login":"vivienr","id":1928709,"node_id":"MDQ6VXNlcjE5Mjg3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/1928709?v=4","gravatar_id":"","url":"https://api.github.com/users/vivienr","html_url":"https://github.com/vivienr","followers_url":"https://api.github.com/users/vivienr/followers","following_url":"https://api.github.com/users/vivienr/following{/other_user}","gists_url":"https://api.github.com/users/vivienr/gists{/gist_id}","starred_url":"https://api.github.com/users/vivienr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivienr/subscriptions","organizations_url":"https://api.github.com/users/vivienr/orgs","repos_url":"https://api.github.com/users/vivienr/repos","events_url":"https://api.github.com/users/vivienr/events{/privacy}","received_events_url":"https://api.github.com/users/vivienr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"duncanmmacleod","id":1618530,"node_id":"MDQ6VXNlcjE2MTg1MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1618530?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanmmacleod","html_url":"https://github.com/duncanmmacleod","followers_url":"https://api.github.com/users/duncanmmacleod/followers","following_url":"https://api.github.com/users/duncanmmacleod/following{/other_user}","gists_url":"https://api.github.com/users/duncanmmacleod/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmmacleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmmacleod/subscriptions","organizations_url":"https://api.github.com/users/duncanmmacleod/orgs","repos_url":"https://api.github.com/users/duncanmmacleod/repos","events_url":"https://api.github.com/users/duncanmmacleod/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmmacleod/received_events","type":"User","site_admin":false},"assignees":[{"login":"duncanmmacleod","id":1618530,"node_id":"MDQ6VXNlcjE2MTg1MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1618530?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanmmacleod","html_url":"https://github.com/duncanmmacleod","followers_url":"https://api.github.com/users/duncanmmacleod/followers","following_url":"https://api.github.com/users/duncanmmacleod/following{/other_user}","gists_url":"https://api.github.com/users/duncanmmacleod/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmmacleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmmacleod/subscriptions","organizations_url":"https://api.github.com/users/duncanmmacleod/orgs","repos_url":"https://api.github.com/users/duncanmmacleod/repos","events_url":"https://api.github.com/users/duncanmmacleod/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmmacleod/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-09-06T16:09:13Z","updated_at":"2018-09-13T08:41:28Z","closed_at":"2018-09-13T05:41:02Z","author_association":"NONE","body":"The documentation https://gwpy.github.io/docs/stable/timeseries/io.html#id2 could mention how one specifies a channel when writing to a .gwf file. As shown below, my naive attempt did not succeed:\r\n\r\n```\r\n(gw) vflr:sandbox vivien$ lalframe_version \r\nLAL: 6.18.0.1-dev20180904 (CLEAN 48386bc466afcd0f9af14b2c30e3ea0d5ae74746)\r\nLALFrame: 1.4.3.1-dev20180904 (CLEAN 48386bc466afcd0f9af14b2c30e3ea0d5ae74746)\r\n(gw) vflr:sandbox vivien$ python\r\nPython 2.7.15 (default, May  2 2018, 00:53:27) \r\n[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import gwpy\r\n>>> gwpy.__version__\r\nu'0.12.0'\r\n>>> from numpy.random import random\r\n>>> from gwpy.timeseries import TimeSeries\r\n>>> t = TimeSeries(random(1000))\r\n>>> t.channel='H1:not_a_real_channel'\r\n>>> t.write('not_real_data.gwf')\r\n>>> ^D\r\n(gw) vflr:sandbox vivien$ FrDump -i not_real_data.gwf \r\n-----------Parameters used--------------\r\n  Input  Files: not_real_data.gwf\r\n  First frame  : 0 0 (GPS=0.0)\r\n  Last  frame  : 2147483647 2147483647 (GPS=2147483647.0)\r\n  Debug level  : 1\r\n Dump all Frame info\r\n----------------------------------------\r\nnot_real_data.gwf\t0 1000  0 0\r\nFile(s) summary:\r\n 1 Frames in the requested time range (0 to 10000000000 (GPS))\r\n     First frame start at:0 (UTC:Sun Jan  6 00:00:19 1980) length=1000.00s.\r\n        Last frame end at:1000 (UTC:Sun Jan  6 00:16:59 1980) length=1000.00s.\r\n ADC :     0 type of AdcData :\r\n Ser :     0 type of SerData :\r\n Proc:     1 type of ProcData: \r\n Sim :     0 type of SimData :\r\n Detector: 1 type of Detector: GEO_600\r\n StatData: 0 type of StatData:\r\n Event   : 0 Types of event in the file\r\n Simulated Event   : 0 Types of event in the file\r\n(gw) vflr:sandbox vivien$ \r\n```"},"comment":{"url":"https://api.github.com/repos/gwpy/gwpy/issues/comments/420930252","html_url":"https://github.com/gwpy/gwpy/issues/889#issuecomment-420930252","issue_url":"https://api.github.com/repos/gwpy/gwpy/issues/889","id":420930252,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDkzMDI1Mg==","user":{"login":"duncanmmacleod","id":1618530,"node_id":"MDQ6VXNlcjE2MTg1MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1618530?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanmmacleod","html_url":"https://github.com/duncanmmacleod","followers_url":"https://api.github.com/users/duncanmmacleod/followers","following_url":"https://api.github.com/users/duncanmmacleod/following{/other_user}","gists_url":"https://api.github.com/users/duncanmmacleod/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmmacleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmmacleod/subscriptions","organizations_url":"https://api.github.com/users/duncanmmacleod/orgs","repos_url":"https://api.github.com/users/duncanmmacleod/repos","events_url":"https://api.github.com/users/duncanmmacleod/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmmacleod/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T08:41:28Z","updated_at":"2018-09-13T08:41:28Z","author_association":"MEMBER","body":"@vivienr, the issue here is that your `TimeSeries` doesn't have a `name` attribute, which is what is actually written in to the TOC. If you add that attribute you should get the output you expect, please confirm.\r\n\r\nI will have a look at mapping the `channel` over to `name` when no `name` is provided."}}
{"actor":{"display_login":"duncanmmacleod"}}