Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Rename isPublic to is_public when creating or reading runtime programs #155

Merged
merged 1 commit into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit_ibm/api/rest/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm/runtime/ibm_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/ibm/runtime/fake_runtime_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down