c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.8K
active users

#PINT

0 posts0 participants0 posts today

I use the #Python library #Pint to integrate units into my #engineering calculations. In general, it works well with #NumPy, but I discovered yesterday that units are lost when using the "piecewise" function on an array with units.

Possibly the problem would be solved if I upgraded to the latest versions of Pint and NumPy; both have seen a lot of development in recent years. But I won't depend upon NumPy > v.2.0 until it's been released in Debian Stable.

Continued thread

The #UnPaAc package is now available on #PyPI. One advantage compared to #pint and #uncertainties (including their #pandas integrations) is, that it allows to store and restore DataFrames with Series containing #units and uncertainties to/from csv files. An example workflow of this procedure is described in the package's readme file: codeberg.org/Cs137/UnPaAc#save

Codeberg.orgUnPaAcPandas DataFrame and Series accessors to handle quantities with uncertainties.