Skip to content

Commit

Permalink
added scale-factor conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Dec 27, 2022
1 parent a85ec03 commit 9d10736
Show file tree
Hide file tree
Showing 11 changed files with 691 additions and 243 deletions.
6 changes: 3 additions & 3 deletions doc/accessories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ circuit::

> cat ~/.ecrc
# define some functions useful in phasor analysis
(2pi * "rads/s")to_omega # convert frequency in Herts to radians/s
(2pi * "rads/s")to_omega # convert frequency in Hertz to radians/s
(mag 2pi / "Hz")to_freq # convert frequency in radians/s to Hertz
(j2pi * "rads/s")to_jomega # convert frequency in Herts to imaginary radians/s
(j2pi * "rads/s")to_jomega # convert frequency in Hertz to imaginary radians/s

> cat ./.ecrc
# define default values for parameters
Expand Down Expand Up @@ -143,7 +143,7 @@ programs that are useful in their own right, but also act as demonstrators as to
how to use the library. They are *list-psf* and *plot-psf*. The first lists the
available signals in a file, and the other displays them.

*QuantiPhy* is used by *plot-psf* when generating the axis lables.
*QuantiPhy* is used by *plot-psf* when generating the axis labels.

The source code is available from the `psf_utils repository
<https://github.com/KenKundert/psf_utils>`_ on GitHub, or you can install it
Expand Down
10 changes: 8 additions & 2 deletions doc/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ Latest development release
| Version: 2.19a2
| Released: 2022-12-17
- Add new standard SI scale factors (*Q*, *R*, *r*, *q*).

2.19 (2023-01-??)
-----------------
- Added new standard SI scale factors (*Q*, *R*, *r*, *q*).
- Subclasses of :class:`Quantity` with units now convert values to the desired
units rather than allowing the units of the class to be overridden by those of
the value.
- Added “cover” option to *strip_radix*..
- Added scale factor conversion.
- Added quantity functions: :func:`as_real`, :func:`as_tuple`, :func:`render`,
:func:`fixed`, and :func:`binary`.
- Added “cover” option to *strip_radix* preference.
- Added type hints.


Expand Down

0 comments on commit 9d10736

Please sign in to comment.