-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Migrate visualization to top level namespace #1878
Merged
Merged
Conversation
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
mtreinish
requested review from
1ucian0,
ajavadia,
atilag,
delapuente,
diego-plan9,
ewinston,
jaygambetta,
kdk,
nonhermitian and
taalexander
as code owners
February 28, 2019 14:02
mtreinish
force-pushed
the
migrate-visualization
branch
from
February 28, 2019 21:17
513e646
to
4a708a7
Compare
while moving these files should we also remove the leading underscores? (#1206) |
ajavadia
reviewed
Mar 10, 2019
ajavadia
requested changes
Mar 10, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also move the test files from test.python.tools.visualization
up one level.
yes I think we should |
mtreinish
force-pushed
the
migrate-visualization
branch
from
March 27, 2019 20:17
9e9b4ca
to
644159e
Compare
mtreinish
force-pushed
the
migrate-visualization
branch
from
April 1, 2019 11:55
0356b83
to
6439a65
Compare
@mtreinish can you also remove the leading underscore from the files here as you move them? |
mtreinish
force-pushed
the
migrate-visualization
branch
from
April 3, 2019 23:12
5ef9fab
to
cad4291
Compare
ajavadia
previously approved these changes
Apr 4, 2019
This commit moves the visualization code out of tools into it's own top level namespace, 'qiskit.visualization'. The visualization was a bit out of place in the tools directory and is really it's own top level thing at this point. However, because we declared the public visualization interfaces stable as part of the 0.7 release we must maintain backwards compatibility. In order to facilitate that all the public APIs are still accessible via 'qiskit.tools.visualization'. However, private api/modules are not accessible off of 'qiskit.tools.visualization' anymore.
mtreinish
force-pushed
the
migrate-visualization
branch
from
April 4, 2019 15:12
6174659
to
5956b21
Compare
ajavadia
approved these changes
Apr 4, 2019
lia-approves
pushed a commit
to edasgupta/qiskit-terra
that referenced
this pull request
Jul 30, 2019
* Migrate visualization to top level namespace This commit moves the visualization code out of tools into it's own top level namespace, 'qiskit.visualization'. The visualization was a bit out of place in the tools directory and is really it's own top level thing at this point. However, because we declared the public visualization interfaces stable as part of the 0.7 release we must maintain backwards compatibility. In order to facilitate that all the public APIs are still accessible via 'qiskit.tools.visualization'. However, private api/modules are not accessible off of 'qiskit.tools.visualization' anymore. * Add changelog * Fix lint Sigh pylint, raising an error for both using a wildcard import and not using all the imports from the wild card. * Rebase updates * Move tests to match new dir structure * Update test_visualization import per review comment * Remove underscores from visualization modules * Fix lint
Merged
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This commit moves the visualization code out of tools into it's own top
level namespace,
qiskit.visualization
. The visualization was a bit outof place in the tools directory and is really it's own top level thing
at this point. However, because we declared the public visualization
interfaces stable as part of the 0.7 release we must maintain backwards
compatibility. In order to facilitate that all the public APIs are still
accessible via
qiskit.tools.visualization
. However, privateapi/modules are not accessible off of
qiskit.tools.visualization
anymore.
Details and comments