{"action":"created","issue":{"url":"https://api.github.com/repos/equinor/dlisio/issues/131","repository_url":"https://api.github.com/repos/equinor/dlisio","labels_url":"https://api.github.com/repos/equinor/dlisio/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/equinor/dlisio/issues/131/comments","events_url":"https://api.github.com/repos/equinor/dlisio/issues/131/events","html_url":"https://github.com/equinor/dlisio/issues/131","id":456478624,"node_id":"MDU6SXNzdWU0NTY0Nzg2MjQ=","number":131,"title":"curves access iostream error","user":{"login":"mmramos","id":9342057,"node_id":"MDQ6VXNlcjkzNDIwNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/9342057?v=4","gravatar_id":"","url":"https://api.github.com/users/mmramos","html_url":"https://github.com/mmramos","followers_url":"https://api.github.com/users/mmramos/followers","following_url":"https://api.github.com/users/mmramos/following{/other_user}","gists_url":"https://api.github.com/users/mmramos/gists{/gist_id}","starred_url":"https://api.github.com/users/mmramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmramos/subscriptions","organizations_url":"https://api.github.com/users/mmramos/orgs","repos_url":"https://api.github.com/users/mmramos/repos","events_url":"https://api.github.com/users/mmramos/events{/privacy}","received_events_url":"https://api.github.com/users/mmramos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-15T00:11:49Z","updated_at":"2019-06-15T10:13:18Z","closed_at":null,"author_association":"NONE","body":"Hi, I am trying to access some curves in **\"206_05a-_3_DWL_DWL_WIRE_258276501.DLIS\"** example file in the following code:\r\n\r\n```\r\nimport dlisio    \r\nwith dlisio.load(\"206_05a-_3_DWL_DWL_WIRE_258276501.DLIS\") as files:\r\n    for f in files:header = f.fileheader\r\n    \r\n#------------------------------------------------------------------#\r\n\r\nprint(f.object_sets['FRAME']) # just to find the fingerprints\r\nprint(f.curves('T.FRAME-I.2000T-O.2-C.0'))\r\n```\r\n, \r\nand I'm getting the following error:\r\n```\r\n---------------------------------------------------------------------------\r\nRuntimeError                              Traceback (most recent call last)\r\n<ipython-input-6-4aad290d18a0> in <module>\r\n      1 print(f.object_sets['FRAME'])\r\n----> 2 print(f.curves('T.FRAME-I.2000T-O.2-C.0'))\r\n\r\n~/miniconda3/lib/python3.6/site-packages/dlisio/__init__.py in curves(self, fingerprint)\r\n    133         indices = self.fdata_index[fingerprint]\r\n    134         a = np.empty(shape = len(indices), dtype = frame.dtype)\r\n--> 135         core.read_all_fdata(fmt, self.file, indices, a)\r\n    136         return a\r\n    137 \r\n\r\nRuntimeError: basic_ios::clear: iostream error\r\n```\r\n,\r\non Linux, and `RuntimeError: ios_base::failbit set:iostream stream error` on Windows."},"comment":{"url":"https://api.github.com/repos/equinor/dlisio/issues/comments/502353996","html_url":"https://github.com/equinor/dlisio/issues/131#issuecomment-502353996","issue_url":"https://api.github.com/repos/equinor/dlisio/issues/131","id":502353996,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMjM1Mzk5Ng==","user":{"login":"jokva","id":8667957,"node_id":"MDQ6VXNlcjg2Njc5NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8667957?v=4","gravatar_id":"","url":"https://api.github.com/users/jokva","html_url":"https://github.com/jokva","followers_url":"https://api.github.com/users/jokva/followers","following_url":"https://api.github.com/users/jokva/following{/other_user}","gists_url":"https://api.github.com/users/jokva/gists{/gist_id}","starred_url":"https://api.github.com/users/jokva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokva/subscriptions","organizations_url":"https://api.github.com/users/jokva/orgs","repos_url":"https://api.github.com/users/jokva/repos","events_url":"https://api.github.com/users/jokva/events{/privacy}","received_events_url":"https://api.github.com/users/jokva/received_events","type":"User","site_admin":false},"created_at":"2019-06-15T10:13:18Z","updated_at":"2019-06-15T10:13:18Z","author_association":"COLLABORATOR","body":"You exit the indented `with` block, which closes the file.\r\n\r\nTry this:\r\n\r\n```\r\nimport dlisio    \r\nwith dlisio.load(\"206_05a-_3_DWL_DWL_WIRE_258276501.DLIS\") as files:\r\n    for f in files:\r\n        header = f.fileheader\r\n\r\n        print(f.object_sets['FRAME']) # just to find the fingerprints\r\n        print(f.curves('T.FRAME-I.2000T-O.2-C.0'))\r\n```\r\n"}}
{"actor":{"display_login":"jokva"}}