-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider is not copied in the copy
method in ExperimentData
#1314
Labels
bug
Something isn't working
Comments
#1316 solve this issue by copying the provider. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 30, 2023
…retrieve_data` (#1316) ### Summary As said in #1314 , `copy` method in `Experiment Data` class will now copy the `provider` attribute to the copied instance and warnning if data isn't retrieved due to `provider=None` . ### Details and comments Some details that should be in this section include: - Why this change was necessary This is a bug that the provider isn't copied. In addition, `_retrive_data()` method in the `ExperimentData` class doesn;t retirive data if provider is not provided. Added a warning so the user will know.
Closing issue. |
itoko
pushed a commit
to itoko/qiskit-experiments
that referenced
this issue
Dec 12, 2023
…retrieve_data` (qiskit-community#1316) ### Summary As said in qiskit-community#1314 , `copy` method in `Experiment Data` class will now copy the `provider` attribute to the copied instance and warnning if data isn't retrieved due to `provider=None` . ### Details and comments Some details that should be in this section include: - Why this change was necessary This is a bug that the provider isn't copied. In addition, `_retrive_data()` method in the `ExperimentData` class doesn;t retirive data if provider is not provided. Added a warning so the user will know.
nkanazawa1989
pushed a commit
to nkanazawa1989/qiskit-experiments
that referenced
this issue
Jan 17, 2024
…retrieve_data` (qiskit-community#1316) ### Summary As said in qiskit-community#1314 , `copy` method in `Experiment Data` class will now copy the `provider` attribute to the copied instance and warnning if data isn't retrieved due to `provider=None` . ### Details and comments Some details that should be in this section include: - Why this change was necessary This is a bug that the provider isn't copied. In addition, `_retrive_data()` method in the `ExperimentData` class doesn;t retirive data if provider is not provided. Added a warning so the user will know.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Informations
What is the current behavior?
When retrieving data, if the provider is
None
no warning is documented even though no data is retrieved. In addition, Thecopy()
method inExperimentData
class doesn't copy theprovider
from the originalExperimentData
objectSteps to reproduce the problem
Then using the
experiment_id
(here I used mine)It will be
None
.If
provider
is not provided in theload
method, there will be no indication for the user to know that the data wasn't retrieved.What is the expected behavior?
We expect that the data will keep information about the provider if given to him.
Suggested solutions
Add warning to the
_retrieve_data()
method inExperimentData
object and to copy theprovider
attribute in thecopy()
methodThe text was updated successfully, but these errors were encountered: