Skip to content
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

Update key and URLs in README.md #48

Merged
merged 5 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ bg-mpl-stylesheets
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
:target: https://github.com/psf/black

.. |Codecov| image:: https://codecov.io/gh/bg-mpl-stylesheets/bg-mpl-stylesheets/branch/main/graph/badge.svg
:target: https://codecov.io/gh/bg-mpl-stylesheets/bg-mpl-stylesheets
.. |Codecov| image:: https://codecov.io/gh/Billingegroup/bg-mpl-stylesheets/branch/main/graph/badge.svg
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many URLs didn't work as the organization was moved from bg-mpl-stylesheets to Billingegroup.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching and fixing that.

:target: https://codecov.io/gh/Billingegroup/bg-mpl-stylesheets

.. |Forge| image:: https://img.shields.io/conda/vn/conda-forge/bg-mpl-stylesheets
:target: https://anaconda.org/conda-forge/bg-mpl-stylesheets
Expand All @@ -23,7 +23,7 @@ bg-mpl-stylesheets
:target: https://pypi.org/project/bg-mpl-stylesheets/

.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
:target: https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/issues
:target: https://github.com/Billingegroup/bg-mpl-stylesheets/issues

A package for using Billinge group style files

Expand All @@ -34,7 +34,7 @@ Citation

If you use bg-mpl-stylesheets in a scientific publication, we would like you to cite this package as

bg-mpl-stylesheets Package, https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets
bg-mpl-stylesheets Package, https://github.com/Billingegroup/bg-mpl-stylesheets

Installation
------------
Expand Down Expand Up @@ -69,7 +69,7 @@ and then install the package ::
pip install bg-mpl-stylesheets

If you prefer to install from sources, after installing the dependencies, obtain the source archive from
`GitHub <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/>`_. Once installed, ``cd`` into your ``bg-mpl-stylesheets`` directory
`GitHub <https://github.com/Billingegroup/bg-mpl-stylesheets/>`_. Once installed, ``cd`` into your ``bg-mpl-stylesheets`` directory
and run the following ::

pip install .
Expand Down Expand Up @@ -132,7 +132,7 @@ You can also update style parameters locally by using the matplotlib style conte
plt.ylabel('some numbers')
plt.show()

Here are a snapshot of values in ``all_styles["bg_style"]`` sheet which you may override with ``rc.parms`` to fine tune things: ::
Here are a snapshot of values in ``all_styles["bg-style"]`` sheet which you may override with ``rc.parms`` to fine tune things: ::

'lines.linewidth': 2.50,
'lines.markeredgewidth': 0.25,
Expand Down Expand Up @@ -205,7 +205,7 @@ Support and Contribute

`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of bg-mpl-stylesheets. Please join the bg-mpl-stylesheets users community by joining the Google group. The bg-mpl-stylesheets project welcomes your expertise and enthusiasm!

If you see a bug or want to request a feature, please `report it as an issue <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/issues>`_ and/or `submit a fix as a PR <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/Billingegroup/bg-mpl-stylesheets/issues>`_ and/or `submit a fix as a PR <https://github.com/Billingegroup/bg-mpl-stylesheets/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.

Feel free to fork the project and contribute. To install bg-mpl-stylesheets
in a development mode, with its sources being directly used by Python
Expand All @@ -228,7 +228,9 @@ trying to commit again.

Improvements and fixes are always appreciated.

Before contribuing, please read our `Code of Conduct <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/blob/main/CODE_OF_CONDUCT.rst>`_.
Before contribuing, please read our `Code of Conduct <https://github.com/Billingegroup/bg-mpl-stylesheets/blob/main/CODE_OF_CONDUCT.rst>`_.



Contact
-------
Expand Down
4 changes: 2 additions & 2 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ bg-mpl-stylesheets is developed by Billinge Group
and its community contributors.

For a detailed list of contributors see
https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/graphs/contributors.
https://github.com/Billingegroup/bg-mpl-stylesheets/graphs/contributors.

============
Installation
============

See the `README <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets#installation>`_
See the `README <https://github.com/Billingegroup/bg-mpl-stylesheets#installation>`_
file included with the distribution.

=================
Expand Down
2 changes: 1 addition & 1 deletion example/color_cycles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# please read the README about how to install the group plot style package
# and how to import it and use
plt.style.use(all_styles["bg_style"])
plt.style.use(all_styles["bg-style"])


x = np.arange(0, 1, 0.01)
Expand Down
2 changes: 1 addition & 1 deletion example/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# please read the README about how to install the group plot style package
# and how to import it and use
plt.style.use(all_styles["bg_style"])
plt.style.use(all_styles["bg-style"])

# load PDF data
r, gcalc, dr, dg, gdiff = loadData("example/CdSe_data.fgr").T
Expand Down
23 changes: 23 additions & 0 deletions news/tutorial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* key name in the style dictionary from all_styles["bg_style"] to all_styles["bg-style"]

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* URLs referring to the organization in README.md

**Security:**

* <news item>
2 changes: 1 addition & 1 deletion src/bg_mpl_stylesheets/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def update_style_with_latex(style):
return style


all_styles = {"bg_style": bg_style}
all_styles = {"bg-style": bg_style}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only place that remains as bg_style is the variable name since we are not able to use -.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is correct.


for key, style in all_styles.items():
all_styles.update({key: update_style_with_latex(style)})
2 changes: 1 addition & 1 deletion src/bg_mpl_stylesheets/tests/test_bg_mpl_stylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_update_style_with_latex():
actual = styles.update_style_with_latex(styles.all_styles["bg_style"])
actual = styles.update_style_with_latex(styles.all_styles["bg-style"])
expected = expected_style
assert expected == actual

Expand Down
Loading