forked from qiskit-community/qiskit-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix when copying the
ExperiemntData
object and add warning to `_…
…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.
- Loading branch information
1 parent
99b8db8
commit d63be24
Showing
5 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
'copy' method under ExperimentData class now copies the provider. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters