This project has been archived by its maintainers, and is no longer receiving any updates.
totypes - Custom types for topology optimization
Overview
The totypes package defines custom jax-compatible datatypes for use in a topology optimization, inverse design, or AI-guided design context. The custom types are pytree nodes consisting of standard jax arrays along with metadata that describe the desired characteristics of the arrays.
BoundedArray, an array with optional lower and/or upper bounds, used e.g. for representing layer thicknesses.Density2DArray, an array with lower and upper bounds and characteristics such as fixed pixels, minimum feature size, or symmetry, used for representing layer density as is common in topology optimization.
Custom types do not modify the underlying arrays to ensure that e.g. bounds are obeyed. Instead, it is intended that any scheme for generating arrays be aware of and respect the metadata. For example, a topology optimization scheme could read the minimum width and spacing of layers, and use these quantities to construct an appropriate filtering scheme.
Several related utilities are also provided. The json_utils module provides functions for serializing and deserializing pytrees containing the custom types. And, the symmetry module provides functions that symmetrize arrays; the allowed symmetries of the Density2DArray are restricted to those implemented in the symmetry module.
Install
pip install totypes
Metadata
Release files for totypes 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| totypes-0.9.1.tar.gz | 16.0 kB | Without provenance | Details for totypes-0.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| totypes-0.9.1-py3-none-any.whl | Python 3 | none | any | Details for totypes-0.9.1-py3-none-any.whl |
Total release size: 28.0 kB
Release files / totypes-0.9.1.tar.gz
| Download URL | totypes-0.9.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f61ffc0aab8fe91008229d47ec36f9a54d6d87d24e5996ce7fda34c9b2251b2
|
|
BLAKE2b-256 checksum How to use checksums |
a7bde2468e8a4278ea19cb08635bd477121710e2de98feb88325449ddca24059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / totypes-0.9.1-py3-none-any.whl
| Download URL | totypes-0.9.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
657e3fae15059f919ab5268b7106fc9bc62df98f520fc361dcaf85bce1e0886b
|
|
BLAKE2b-256 checksum How to use checksums |
c5fc6c3da5ade4a40aece0c6b694e8caa41387c5fe871822701d9ab2776dc57f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for totypes 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.