{"action":"closed","issue":{"url":"https://api.github.com/repos/odlgroup/odl/issues/1196","repository_url":"https://api.github.com/repos/odlgroup/odl","labels_url":"https://api.github.com/repos/odlgroup/odl/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/odlgroup/odl/issues/1196/comments","events_url":"https://api.github.com/repos/odlgroup/odl/issues/1196/events","html_url":"https://github.com/odlgroup/odl/issues/1196","id":265824338,"number":1196,"title":"string representation of ODL objects","user":{"login":"mehrhardt","id":6604653,"avatar_url":"https://avatars0.githubusercontent.com/u/6604653?v=4","gravatar_id":"","url":"https://api.github.com/users/mehrhardt","html_url":"https://github.com/mehrhardt","followers_url":"https://api.github.com/users/mehrhardt/followers","following_url":"https://api.github.com/users/mehrhardt/following{/other_user}","gists_url":"https://api.github.com/users/mehrhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/mehrhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehrhardt/subscriptions","organizations_url":"https://api.github.com/users/mehrhardt/orgs","repos_url":"https://api.github.com/users/mehrhardt/repos","events_url":"https://api.github.com/users/mehrhardt/events{/privacy}","received_events_url":"https://api.github.com/users/mehrhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-16T16:03:16Z","updated_at":"2017-10-22T15:14:12Z","closed_at":"2017-10-22T15:14:12Z","author_association":"CONTRIBUTOR","body":"The string representation of ODL objects needs to be improved. My code did result in an error, but the error message was not shown anymore with 500 lines buffering in the ipython console because the string of the ODL object involved was too long. Here is a **snippet** of the output.\r\n\r\n```\r\n... **a lot** more lines ...\r\n    DiscreteLp(\r\n        FunctionSpace(IntervalProd([3.0473448739820994, -28.284271247461902], [3.1415926535897931, 28.284271247461902]), out_dtype='float32'),\r\n        uniform_partition([3.0473448739820994, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200)),\r\n        rn(200, 'float32', weighting=0.02666),\r\n        axis_labels=('$\\\\varphi$', '$s$')\r\n    ),\r\n    DiscreteLp(\r\n        FunctionSpace(IntervalProd([3.0630528372500487, -28.284271247461902], [3.1415926535897931, 28.284271247461902]), out_dtype='float32'),\r\n        uniform_partition([3.0630528372500487, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200)),\r\n        rn(200, 'float32', weighting=0.02221),\r\n        axis_labels=('$\\\\varphi$', '$s$')\r\n    ),\r\n    DiscreteLp(\r\n        FunctionSpace(IntervalProd([3.0787608005179976, -28.284271247461902], [3.1415926535897931, 28.284271247461902]), out_dtype='float32'),\r\n        uniform_partition([3.0787608005179976, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200)),\r\n        rn(200, 'float32', weighting=0.01777),\r\n        axis_labels=('$\\\\varphi$', '$s$')\r\n    ),\r\n    DiscreteLp(\r\n        FunctionSpace(IntervalProd([3.0944687637859465, -28.284271247461902], [3.1415926535897931, 28.284271247461902]), out_dtype='float32'),\r\n        uniform_partition([3.0944687637859465, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200)),\r\n        rn(200, 'float32', weighting=0.01333),\r\n        axis_labels=('$\\\\varphi$', '$s$')\r\n    ),\r\n    DiscreteLp(\r\n        FunctionSpace(IntervalProd([3.1101767270538954, -28.284271247461902], [3.1415926535897931, 28.284271247461902]), out_dtype='float32'),\r\n        uniform_partition([3.1101767270538954, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200)),\r\n        rn(200, 'float32', weighting=0.008886),\r\n        axis_labels=('$\\\\varphi$', '$s$')\r\n    ),\r\n    uniform_discr([3.1258846903218442, -28.284271247461902], [3.1415926535897931, 28.284271247461902], (1, 200), dtype='float32', axis_labels=('$\\\\varphi$', '$s$'))\r\n)\r\n``` \r\nA few things that one can easily notice is that the precision of the numbers can be shortened and newlines be removed. In addition, does one really need things like axis_labels?"}}
{"actor":{"display_login":"kohr-h"}}