Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Second what @Håkon V. Treider writes here. You need to consider intermediate chained calls. This works:from unittest.mock import MagicMockfrom cognite.client.data_classes import TimeSeries, TimeSeriesList, Assetfrom cognite.client.testing import monkeypatch_cognite_clientts_retrieved = [ TimeSeries( id=3973245479016710, external_id="Brazil:3W:Well-Bore-19B_target_throughput", name="Brazil:3W:Well-Bore-19B_target_throughput", is_string=False, metadata={}, unit="Barrel", asset_id=3332326574821917, is_step=False, description="target volume for a oil well bore", security_categories=[], data_set_id=8739280581150161, created_time=123, last_updated_time=345 )]asset_name = "some_asset"with monkeypatch_cognite_client() as client: asset_retrieve_response_mock = MagicMock() asset_retrieve_response_mock.time_series.return_value = TimeSeriesList(ts_retrieved) client.assets.retrieve.return_value
Hi.Thanks for getting in touch. Having this in the SDK absolutely makes sense, I have added this request to our backlog. Depending on what you are trying to do it may be more suitable to pass a root asset id as filter instead, which would let you filter out any time series which don’t belong to an entire subtree rooted at a specified asset. This subtree can contain up to 100,000 assets.
The Range header is part of HTTP, as specified by RFC7233 (https://datatracker.ietf.org/doc/html/rfc7233). Most blob stores will return an `Accept-Ranges` response header indicating support for Range requests. I’m not familiar with Pangeo, but if it conforms to this standard it should work fine.
Hi Thomas,Thanks for reaching out!The download endpoint supports supplying the Range header to specify which byte range to download, e.g."Range": "bytes:1000-2000"Please not that both start and end are inclusive.Does that solve your problem?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.