{"action":"created","issue":{"url":"https://api.github.com/repos/CCI-Tools/cate/issues/564","repository_url":"https://api.github.com/repos/CCI-Tools/cate","labels_url":"https://api.github.com/repos/CCI-Tools/cate/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/CCI-Tools/cate/issues/564/comments","events_url":"https://api.github.com/repos/CCI-Tools/cate/issues/564/events","html_url":"https://github.com/CCI-Tools/cate/issues/564","id":306002348,"number":564,"title":"ops.open_dataset force_local error when opening the downloaded dataset","user":{"login":"JanisGailis","id":9655353,"avatar_url":"https://avatars0.githubusercontent.com/u/9655353?v=4","gravatar_id":"","url":"https://api.github.com/users/JanisGailis","html_url":"https://github.com/JanisGailis","followers_url":"https://api.github.com/users/JanisGailis/followers","following_url":"https://api.github.com/users/JanisGailis/following{/other_user}","gists_url":"https://api.github.com/users/JanisGailis/gists{/gist_id}","starred_url":"https://api.github.com/users/JanisGailis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanisGailis/subscriptions","organizations_url":"https://api.github.com/users/JanisGailis/orgs","repos_url":"https://api.github.com/users/JanisGailis/repos","events_url":"https://api.github.com/users/JanisGailis/events{/privacy}","received_events_url":"https://api.github.com/users/JanisGailis/received_events","type":"User","site_admin":false},"labels":[{"id":449215763,"url":"https://api.github.com/repos/CCI-Tools/cate/labels/blocker","name":"blocker","color":"d93f0b","default":false},{"id":346842323,"url":"https://api.github.com/repos/CCI-Tools/cate/labels/bug","name":"bug","color":"fc2929","default":true},{"id":459291685,"url":"https://api.github.com/repos/CCI-Tools/cate/labels/ds","name":"ds","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":{"login":"kbernat","id":5653988,"avatar_url":"https://avatars1.githubusercontent.com/u/5653988?v=4","gravatar_id":"","url":"https://api.github.com/users/kbernat","html_url":"https://github.com/kbernat","followers_url":"https://api.github.com/users/kbernat/followers","following_url":"https://api.github.com/users/kbernat/following{/other_user}","gists_url":"https://api.github.com/users/kbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/kbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbernat/subscriptions","organizations_url":"https://api.github.com/users/kbernat/orgs","repos_url":"https://api.github.com/users/kbernat/repos","events_url":"https://api.github.com/users/kbernat/events{/privacy}","received_events_url":"https://api.github.com/users/kbernat/received_events","type":"User","site_admin":false},"assignees":[{"login":"kbernat","id":5653988,"avatar_url":"https://avatars1.githubusercontent.com/u/5653988?v=4","gravatar_id":"","url":"https://api.github.com/users/kbernat","html_url":"https://github.com/kbernat","followers_url":"https://api.github.com/users/kbernat/followers","following_url":"https://api.github.com/users/kbernat/following{/other_user}","gists_url":"https://api.github.com/users/kbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/kbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbernat/subscriptions","organizations_url":"https://api.github.com/users/kbernat/orgs","repos_url":"https://api.github.com/users/kbernat/repos","events_url":"https://api.github.com/users/kbernat/events{/privacy}","received_events_url":"https://api.github.com/users/kbernat/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/CCI-Tools/cate/milestones/9","html_url":"https://github.com/CCI-Tools/cate/milestone/9","labels_url":"https://api.github.com/repos/CCI-Tools/cate/milestones/9/labels","id":3042812,"number":9,"title":"IRM8","description":"","creator":{"login":"kbernat","id":5653988,"avatar_url":"https://avatars1.githubusercontent.com/u/5653988?v=4","gravatar_id":"","url":"https://api.github.com/users/kbernat","html_url":"https://github.com/kbernat","followers_url":"https://api.github.com/users/kbernat/followers","following_url":"https://api.github.com/users/kbernat/following{/other_user}","gists_url":"https://api.github.com/users/kbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/kbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbernat/subscriptions","organizations_url":"https://api.github.com/users/kbernat/orgs","repos_url":"https://api.github.com/users/kbernat/repos","events_url":"https://api.github.com/users/kbernat/events{/privacy}","received_events_url":"https://api.github.com/users/kbernat/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":23,"state":"open","created_at":"2018-01-17T17:38:01Z","updated_at":"2018-03-29T13:50:03Z","due_on":"2018-03-19T07:00:00Z","closed_at":null},"comments":3,"created_at":"2018-03-16T16:51:49Z","updated_at":"2018-03-29T13:50:03Z","closed_at":"2018-03-29T13:50:02Z","author_association":"MEMBER","body":"### Expected behavior\r\n\r\nCate should run the following code without errors:\r\n```python\r\nsst_polar = ops.open_dataset(ds_id='esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1',\r\n                             region=(-180, 60, 180, 90),\r\n                             time_range='2007-01-01, 2007-01-15',\r\n                             var_names='analysed_sst, sea_ice_fraction',\r\n                             force_local=True,\r\n                             local_ds_id='SST_polar_2007',\r\n                             normalize=False,\r\n                             monitor=monitor)\r\n```\r\n\r\n### Actual behavior\r\n\r\nThe dataset gets downloaded and saved into the given ``local_ds_id`` and can be opened using ``ops.open_dataset('local_ds_id')``, but the line above fails with the following stack trace:\r\n```shell\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-2-13c24f5066f0> in <module>()\r\n      6                              local_ds_id='SST_polar_2007',\r\n      7                              normalize=False,\r\n----> 8                              monitor=monitor)\r\n\r\nc:\\cate\\cate\\core\\op.py in __call__(self, monitor, *args, **kwargs)\r\n    213 \r\n    214         # call the callable\r\n--> 215         return_value = self._wrapped_op(**input_values)\r\n    216 \r\n    217         if self.op_meta_info.has_named_outputs:\r\n\r\nc:\\cate\\cate\\ops\\io.py in open_dataset(ds_name, ds_id, time_range, region, var_names, normalize, force_local, local_ds_id, monitor)\r\n     79                                    force_local=force_local,\r\n     80                                    local_ds_id=local_ds_id,\r\n---> 81                                    monitor=monitor)\r\n     82     if ds and normalize:\r\n     83         return adjust_temporal_attrs(normalize_op(ds))\r\n\r\nc:\\cate\\cate\\core\\ds.py in open_dataset(data_source, time_range, region, var_names, force_local, local_ds_id, monitor)\r\n    509                                                  time_range=time_range, region=region, var_names=var_names,\r\n    510                                                  monitor=monitor)\r\n--> 511     return data_source.open_dataset(time_range, region, var_names)\r\n    512 \r\n    513 \r\n\r\nc:\\cate\\cate\\ds\\local.py in open_dataset(self, time_range, region, var_names, protocol)\r\n    174                     ds = normalize_impl(ds)\r\n    175                     ds = subset_spatial_impl(ds, region)\r\n--> 176                     ds.expand_dims()\r\n    177                     ds.var()\r\n    178                 if var_names:\r\n\r\nTypeError: expand_dims() missing 1 required positional argument: 'dim'\r\n\r\n```\r\n\r\n### Steps to reproduce the problem\r\n\r\nRun the given code in a notebook. \r\n\r\n### Specifications \r\n\r\n```shell\r\ncate --version\r\ncate 2.0.0.dev5\r\n```"},"comment":{"url":"https://api.github.com/repos/CCI-Tools/cate/issues/comments/377241223","html_url":"https://github.com/CCI-Tools/cate/issues/564#issuecomment-377241223","issue_url":"https://api.github.com/repos/CCI-Tools/cate/issues/564","id":377241223,"user":{"login":"papesci","id":35231512,"avatar_url":"https://avatars2.githubusercontent.com/u/35231512?v=4","gravatar_id":"","url":"https://api.github.com/users/papesci","html_url":"https://github.com/papesci","followers_url":"https://api.github.com/users/papesci/followers","following_url":"https://api.github.com/users/papesci/following{/other_user}","gists_url":"https://api.github.com/users/papesci/gists{/gist_id}","starred_url":"https://api.github.com/users/papesci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papesci/subscriptions","organizations_url":"https://api.github.com/users/papesci/orgs","repos_url":"https://api.github.com/users/papesci/repos","events_url":"https://api.github.com/users/papesci/events{/privacy}","received_events_url":"https://api.github.com/users/papesci/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T13:50:02Z","updated_at":"2018-03-29T13:50:02Z","author_association":"NONE","body":"on behalf of Chris. The issue is already fixed"}}
{"actor":{"display_login":"papesci"}}