-
Notifications
You must be signed in to change notification settings - Fork 25
Self-import refactor #194
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
Self-import refactor #194
Conversation
…h other. they should be positioned in the corner of each subplot
@DanielYang59 curious what you think of refactoring imports in this way, i.e. just having |
Hi @janosh thanks for pinging me. I'm in favor of this way of import:
|
# with '#' will be ignored, and an empty message aborts the commit. # # On branch import-refactor # Your branch is up to date with 'origin/import-refactor'. # # Changes to be committed: # modified: examples/dataset_exploration/camd_2022/explore_camd_2022.py # modified: examples/dataset_exploration/matbench/dielectric/explore_dielectric.py # modified: examples/dataset_exploration/matbench/log_g+kvrh/explore_log_g+krvh.py # modified: examples/dataset_exploration/matbench/perovskites/explore_perovskites.py # modified: examples/dataset_exploration/matpes/eda.py # modified: examples/dataset_exploration/wbm/explore_wbm.py # modified: examples/diatomics/plot.py # modified: examples/make_assets/histogram.py # modified: examples/make_assets/ptable/ptable_matplotlib.py # modified: examples/make_assets/ptable/ptable_plotly.py # modified: pymatviz/__init__.py # modified: pymatviz/histogram.py # modified: pymatviz/ptable/ptable_plotly.py # modified: pymatviz/scatter.py # modified: pymatviz/sunburst.py # modified: pymatviz/uncertainty.py # modified: tests/ptable/test_ptable_matplotlib.py # modified: tests/ptable/test_ptable_plotly.py # modified: tests/test_io.py # modified: tests/test_process_data.py #
Thanks for the effort. That's a lot of work! |
not that much actually. 😄 writing lots of new tests in #193 was much more work |
I appreciate your effort in both cases :) |
* import pymatviz pkg as namespace * bump ruff commit hook + auto fixes * fix LS fit: y = ... annotations for facet plots all lie on top of each other. they should be positioned in the corner of each subplot * restore df_ptable importable from top-level pymatviz namespace * import save_and_compress_svg as pmv.io.save_and_compress_svg * # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch import-refactor # Your branch is up to date with 'origin/import-refactor'. # # Changes to be committed: # modified: examples/dataset_exploration/camd_2022/explore_camd_2022.py # modified: examples/dataset_exploration/matbench/dielectric/explore_dielectric.py # modified: examples/dataset_exploration/matbench/log_g+kvrh/explore_log_g+krvh.py # modified: examples/dataset_exploration/matbench/perovskites/explore_perovskites.py # modified: examples/dataset_exploration/matpes/eda.py # modified: examples/dataset_exploration/wbm/explore_wbm.py # modified: examples/diatomics/plot.py # modified: examples/make_assets/histogram.py # modified: examples/make_assets/ptable/ptable_matplotlib.py # modified: examples/make_assets/ptable/ptable_plotly.py # modified: pymatviz/__init__.py # modified: pymatviz/histogram.py # modified: pymatviz/ptable/ptable_plotly.py # modified: pymatviz/scatter.py # modified: pymatviz/sunburst.py # modified: pymatviz/uncertainty.py # modified: tests/ptable/test_ptable_matplotlib.py # modified: tests/ptable/test_ptable_plotly.py # modified: tests/test_io.py # modified: tests/test_process_data.py # * fix circular import * more import refactor * good enough * fix test side effect altering pmv.df_ptable
import
pymatviz
as namespace