Skip to content

Commit

Permalink
Delete fontsizes.beamer_moml as announced in the deprecation warning (#…
Browse files Browse the repository at this point in the history
…157)

* Delete fontsizes.beamer_moml as announced in the deprecation policy

* Delete an unused import
  • Loading branch information
pnkraemer authored Jan 23, 2025
1 parent 7065b6d commit 0d01199
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
10 changes: 0 additions & 10 deletions tests/test_deprecations.py

This file was deleted.

15 changes: 1 addition & 14 deletions tueplots/fontsizes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Fontsize settings."""

import warnings


def icml2022(*, default_smaller=1):
r"""Font size for ICML 2022.
Expand Down Expand Up @@ -107,19 +105,8 @@ def probnum2025(*, default_smaller=1):
return _from_base(base=10 - default_smaller)


def beamer_moml(**kwargs):
"""Font size for a beamer slide in aspectratio 16:9 with 10pt font.
Deprecated in v0.0.16. Use 'fontsizes.beamer' instead.
"""
msg = "'fontsizes.beamer_moml' has been renamed to 'fontsizes.beamer' in v0.0.16."
msg += " The old API will be removed any time after January 1st, 2025."
warnings.warn(msg, DeprecationWarning)
return beamer(**kwargs)


def beamer(*, default_smaller=1):
"""Font size for a beamer slide (in aspectratio 16:9 with 10pt font)."""
"""Font size for a beamer slide."""
return _from_base(base=10 - default_smaller)


Expand Down

0 comments on commit 0d01199

Please sign in to comment.