Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Nov 8, 2023
1 parent 8cdf87b commit ee7f85a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the doc/ directory with Sphinx
sphinx:
configuration: doc/conf.py
Expand All @@ -14,7 +19,6 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
install:
- requirements: doc/requirements.txt
- method: pip
Expand Down
2 changes: 1 addition & 1 deletion doc/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ a variety of casual units of time. *QuantiPhy* only pre-defines conversions for
time units that are unambiguous and commonly used in scientific computation, so
that leaves out units like months and years. However, in many situations the
goal is simplicity rather than precision. In such a situation, it is convenient
to support any units a user may reasonable expect to use. In a casual setting it
to support any units a user may reasonably expect to use. In a casual setting it
would be very unusual to use SI scale factors, so there use will be prohibited
to allow a greater range of units (ex. m for minutes).

Expand Down
4 changes: 2 additions & 2 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autoclasstoc
docutils==0.16
# There is an incompatibility between Sphinx and docutils version 0.18.
# Also, newer version that 0.16 or perhaps 1.17 do not render bullets in␣
# bullet lists
# Also, newer version that 0.16 or perhaps 1.17 do not render bullets in␣ bullet lists
sphinx_rtd_theme
4 changes: 2 additions & 2 deletions quantiphy/quantiphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _scale(scale, unscaled):
# scale (what you want) scale is scaling factor or function, or to_units
# unscaled (what you have), a quantity

# allow subclasss of Quantity that has units to be the scale
# allow subclass of Quantity that has units to be the scale
try:
if issubclass(scale, Quantity):
scale = scale.units
Expand Down Expand Up @@ -1802,7 +1802,7 @@ def scale(self, scale, cls=None):
"""

# if subclasss of Quantity is passed as scale, use as cls if not given
# if subclass of Quantity is passed as scale, use as cls if not given
try:
if issubclass(scale, Quantity) and not cls:
cls = scale
Expand Down

0 comments on commit ee7f85a

Please sign in to comment.