You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The figure names passed to ExperimentData.add_figures should match the names passed to ExperimentData.figure when retrieving it. Specifically, the following example should not raise an error:
### Summary
Figure names could be referred without ".svg" at the ending.
### Details and comments
Some details that should be in this section include:
In #629 , an issue was raised where a figure that was saved with the
name "abcd" couldn't be accessed. This issue is caused by that the
'add_figures()' method in `ExperimentData` class added ".svg"
automatically. As it explicitly written that SVG extension is added if
the file name doesn't have one, we can conclude that all figure names
have ".svg" extension. To not make a major change in the code I added to
the `figure` method in `ExperimentData` class a check for the extension
of the `figure_key`. If it doesn't have ".svg" ending, it adds one
before trying to pull it from the dict of figures.
---------
Co-authored-by: Yael Ben-Haim <[email protected]>
…kit-community#1287)
### Summary
Figure names could be referred without ".svg" at the ending.
### Details and comments
Some details that should be in this section include:
In qiskit-community#629 , an issue was raised where a figure that was saved with the
name "abcd" couldn't be accessed. This issue is caused by that the
'add_figures()' method in `ExperimentData` class added ".svg"
automatically. As it explicitly written that SVG extension is added if
the file name doesn't have one, we can conclude that all figure names
have ".svg" extension. To not make a major change in the code I added to
the `figure` method in `ExperimentData` class a check for the extension
of the `figure_key`. If it doesn't have ".svg" ending, it adds one
before trying to pull it from the dict of figures.
---------
Co-authored-by: Yael Ben-Haim <[email protected]>
What is the expected behavior?
The figure names passed to
ExperimentData.add_figures
should match the names passed toExperimentData.figure
when retrieving it. Specifically, the following example should not raise an error:The text was updated successfully, but these errors were encountered: