Skip to content
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_experiments/database_service/db_analysis_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
"""
# Data to be stored in DB.
self._experiment_id = experiment_id
self._id = result_id or uuid.uuid4().hex
self._id = result_id or str(uuid.uuid4())
self._name = name
self._value = copy.deepcopy(value)
self._extra = copy.deepcopy(extra or {})
Expand Down
4 changes: 2 additions & 2 deletions qiskit_experiments/database_service/db_experiment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
self._auto_save = False
self._set_service_from_backend(backend)

self._id = experiment_id or uuid.uuid4().hex
self._id = experiment_id or str(uuid.uuid4())
self._parent_id = parent_id
self._type = experiment_type
self._tags = tags or []
Expand Down Expand Up @@ -287,7 +287,7 @@ def add_analysis_callback(self, callback: Callable, **kwargs: Any):
keywork arguments passed to this method.
**kwargs: Keyword arguments to be passed to the callback function.
"""
callback_id = uuid.uuid4().hex
callback_id = uuid.uuid4()
self._callback_statuses[callback_id] = CallbackStatus(callback, kwargs=kwargs)

# Wrap callback function to handle reporting status and catching
Expand Down
2 changes: 1 addition & 1 deletion test/calibration/test_calibrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ class TestSavingAndLoading(CrossResonanceTest):

def setUp(self):
"""Setup the test."""
self._prefix = uuid.uuid4().hex
self._prefix = str(uuid.uuid4())
super().setUp()

def tearDown(self):
Expand Down