0.9.2
New Features
-
Added Metadata API client,
Regions
model and API resource. See #483. -
Added multi-region support to
dwave.cloud.Client
. See #483.New config option for region selection is called
region
, and environment variable is calledDWAVE_API_REGION
.New config option for specifying Metadata API endpoint URL is exposed as
metadata_api_endpoint
andDWAVE_METADATA_API_ENDPOINT
.List of available regions available with
dwave.cloud.Client.get_regions
. -
Add context manager protocol support to
dwave.cloud.api.client.DWaveAPIClient
to ensure resources are easily cleaned up (session closed). Note thatclose()
method is available for cases when context manager pattern is inconvenient. See #492.Similarly, we add
close()
method to resources indwave.cloud.api.resource.*
, in addition to the existing context manager protocol support. -
Add
--region
and--endpoint
options to the relevantdwave
CLI subcommands:ping
,solvers
,sample
,upload
. See #496.
Upgrade Notes
-
To access solvers in a non-default region (na-west-1), you can use the
region
config option andDWAVE_API_REGION
environment variable. -
dwave.cloud.config.load_config
used to return some minimal (but arbitrary) set of always-set options (set toNone
if undefined). Now it returns just the options set either in config file, environment, or kwargs.
Bug Fixes
- Fix
dwave.cloud.api.constants.ProblemType
enumeration to include the CQM problem type. See #491.