Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking changes in upcoming datacube-core release #93

Closed
2 tasks done
tom-butler opened this issue Feb 20, 2019 · 1 comment
Closed
2 tasks done

Breaking changes in upcoming datacube-core release #93

tom-butler opened this issue Feb 20, 2019 · 1 comment

Comments

@tom-butler
Copy link
Contributor

tom-butler commented Feb 20, 2019

  • datacube-wms version: latest
  • datacube-core version: develop 21/02/19
  • new_datasource()

Unexpected server error: new_datasource() takes 1 positional argument but 2 were given

as per: https://datacube-core.readthedocs.io/en/latest/_modules/datacube/api/core.html?highlight=new_datasource

new data source only takes one argument, type: datacube.storage.BandInfo

  • RasterDatasetDataSource

Unexpected server error: 'RasterDatasetDataSource' object has no attribute '_dataset'

After fixing the new_datasource call above, it's become apparent that the returned object has changed, It no longer has _dataset.id as an available parameter.

datasources = sorted(datasources, key=lambda x: x._dataset.id)

These issues will need to be fixed when the WMS is updated to use the next version of core

@tom-butler
Copy link
Contributor Author

After fixing the new_datasource issue, it looks like there are a few more breaking changes I'll make this ticket more general as a catch-all for the new datacube-core release.

@tom-butler tom-butler changed the title new_dataset() has breaking changes in upcoming datacube-core release Breaking changes in upcoming datacube-core release Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants