From 3adb7112ee72c66e083da72a61a5c1806eb6a346 Mon Sep 17 00:00:00 2001 From: Rathish Cholarajan Date: Thu, 14 Oct 2021 12:43:51 -0400 Subject: [PATCH] Rename isPublic to is_public when creating or reading runtime programs --- qiskit_ibm/api/rest/runtime.py | 2 +- qiskit_ibm/runtime/ibm_runtime_service.py | 2 +- test/ibm/runtime/fake_runtime_client.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qiskit_ibm/api/rest/runtime.py b/qiskit_ibm/api/rest/runtime.py index da8cf3487..41e14765a 100644 --- a/qiskit_ibm/api/rest/runtime.py +++ b/qiskit_ibm/api/rest/runtime.py @@ -96,7 +96,7 @@ def create_program( 'cost': str(max_execution_time), 'description': description.encode(), 'max_execution_time': max_execution_time, - 'isPublic': is_public} + 'is_public': is_public} if backend_requirements: data['backendRequirements'] = json.dumps(backend_requirements) if parameters: diff --git a/qiskit_ibm/runtime/ibm_runtime_service.py b/qiskit_ibm/runtime/ibm_runtime_service.py index febe967f6..776b8347d 100644 --- a/qiskit_ibm/runtime/ibm_runtime_service.py +++ b/qiskit_ibm/runtime/ibm_runtime_service.py @@ -196,7 +196,7 @@ def _to_program(self, response: Dict) -> RuntimeProgram: max_execution_time=response.get('cost', 0), creation_date=response.get('creationDate', ""), backend_requirements=backend_req, - is_public=response.get('isPublic', False)) + is_public=response.get('is_public', False)) def run( self, diff --git a/test/ibm/runtime/fake_runtime_client.py b/test/ibm/runtime/fake_runtime_client.py index a041c718a..1243fbb9a 100644 --- a/test/ibm/runtime/fake_runtime_client.py +++ b/test/ibm/runtime/fake_runtime_client.py @@ -47,7 +47,7 @@ def to_dict(self, include_data=False): 'name': self._name, 'cost': self._cost, 'description': self._description, - 'isPublic': self._is_public} + 'is_public': self._is_public} if include_data: out['data'] = self._data if self._backend_requirements: