{"action":"closed","issue":{"url":"https://api.github.com/repos/nexpy/nexpy/issues/179","repository_url":"https://api.github.com/repos/nexpy/nexpy","labels_url":"https://api.github.com/repos/nexpy/nexpy/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/nexpy/nexpy/issues/179/comments","events_url":"https://api.github.com/repos/nexpy/nexpy/issues/179/events","html_url":"https://github.com/nexpy/nexpy/issues/179","id":378195009,"node_id":"MDU6SXNzdWUzNzgxOTUwMDk=","number":179,"title":"IndexError: list index out of range","user":{"login":"jkotan","id":10651163,"node_id":"MDQ6VXNlcjEwNjUxMTYz","avatar_url":"https://avatars0.githubusercontent.com/u/10651163?v=4","gravatar_id":"","url":"https://api.github.com/users/jkotan","html_url":"https://github.com/jkotan","followers_url":"https://api.github.com/users/jkotan/followers","following_url":"https://api.github.com/users/jkotan/following{/other_user}","gists_url":"https://api.github.com/users/jkotan/gists{/gist_id}","starred_url":"https://api.github.com/users/jkotan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkotan/subscriptions","organizations_url":"https://api.github.com/users/jkotan/orgs","repos_url":"https://api.github.com/users/jkotan/repos","events_url":"https://api.github.com/users/jkotan/events{/privacy}","received_events_url":"https://api.github.com/users/jkotan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-07T08:55:53Z","updated_at":"2018-12-04T20:23:09Z","closed_at":"2018-12-04T20:23:09Z","author_association":"CONTRIBUTOR","body":"Trying to plot data from a file [(from here)](https://github.com/jkotan/file-examples/blob/master/pninexus/testp06_cp3.nxs) `testp06_cp3.scan1234.data.p06_xia01` in the tree view I get the following error:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nIndexError                                Traceback (most recent call last)\r\n/usr/lib/python2.7/dist-packages/nexpy/gui/mainwindow.pyc in plot_data(self)\r\n   1382                         pass\r\n   1383                 elif node.is_plottable():\r\n-> 1384                     dialog = PlotDialog(node, parent=self, fmt='o')\r\n   1385                     dialog.show()\r\n   1386                 else:\r\n\r\n/usr/lib/python2.7/dist-packages/nexpy/gui/datadialogs.pyc in __init__(self, node, parent, fmt)\r\n    910         self.grid.addWidget(QtWidgets.QLabel('Signal :'), 0, 0)\r\n    911         self.grid.addWidget(self.signal_combo, 0, 1)\r\n--> 912         self.choose_signal()\r\n    913 \r\n    914         self.layout = QtWidgets.QVBoxLayout()\r\n\r\n/usr/lib/python2.7/dist-packages/nexpy/gui/datadialogs.pyc in choose_signal(self)\r\n    937             row += 1\r\n    938             self.grid.addWidget(QtWidgets.QLabel(\"Axis %s: \" % axis), row, 0)\r\n--> 939             self.axis_boxes[axis] = self.axis_box(axis)\r\n    940             self.grid.addWidget(self.axis_boxes[axis], row, 1)\r\n    941         while row < self.grid.rowCount() - 1:\r\n\r\n/usr/lib/python2.7/dist-packages/nexpy/gui/datadialogs.pyc in axis_box(self, axis)\r\n    954             box.insertSeparator(0)\r\n    955         box.insertItem(0,'NXfield index')\r\n--> 956         if self.default_axes is not None and self.default_axes[axis] in axes:\r\n    957             box.setCurrentIndex(box.findText(self.default_axes[axis]))\r\n    958         else:\r\n```\r\nHowever, the following command in the Jupyter widget\r\n\r\n    testp06_cp3.scan1234.data.p06_xia01.plot()\r\n\r\nworks well."}}
{"actor":{"display_login":"rayosborn"}}