Four And Two Level Designs
The fatld package contains functionality to generate and characterize designs with four-and-two-level (FATL) factors.
Design characteristics include word length pattern, defining relation, and number of clear interactions.
For more information about the package see the documentation at https://abohyndoe.github.io/fatld/.
A large collection of FATL designs can be explored interactively using a web app at https://abohyndoe.shinyapps.io/fatldesign-selection-tool/.
Usage
The package can be used from Python:
>>> import fatld
>>> D = fatld.Design(runsize=32, m=1, cols=[21, 27, 29])
>>> D.wlp()
[1, 3, 3, 0, 0]
>>> D.defining_relation()
['A1cef', 'A3deg', 'A1cdeh']
>>> print("There are %s 2-2 interactions clear from any main effect or other two-factor interaction." % D.clear('2-2'))
There are 6 2-2 interactions clear from any main effect or other two-factor interaction.
>>> print("The design contains %s four-level factors and %s two-level factors" % (D.m, D.n))
The design contains 1 four-level factors and 6 two-level factors
For more examples see the documentation.
Installation
The Python interface to the package is available on pypi. Installation can be done using the following command:
pip install fatld
Development
All development is done in a virtual environment based on poetry, activate it using:
poetry shell
Code style
-
Try to follow the PEP 8 style guide. A usefull tool for automated formatting is black. We do allow lines upto 120 characters.
-
Document functions using the Numpy docstring convention
-
Linting is based on
ruff, configuration is found in the pyproject.toml file. -
Tests are ran using
pytestand a coverage report can be generated usingcoverageinside the virtual environment:coverage run -m pytest tests coverage report -m
Submitting code
If you would like to contribute, please submit a pull request. (See the Github Hello World example, if you are new to Github).
By contributing to the repository you state you own the copyright to those contributions and agree to include your contributions as part of this project under the BSD license.
Bugs reports and feature requests
To submit a bug report or feature request use the Github issue tracker. Search for existing and closed issues first. If your problem or idea is not yet addressed, please open a new issue.
Contact
For further information please contact alexandre dot bohyn at kuleuven dot be
Metadata
Release files for fatld 0.1.11
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 |
|---|---|---|---|---|
| fatld-0.1.11.tar.gz | 19.6 kB | Without provenance | Details for fatld-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fatld-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for fatld-0.1.11-py3-none-any.whl |
Total release size: 39.7 kB
Release files / fatld-0.1.11.tar.gz
| Download URL | fatld-0.1.11.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f10674516c757b9c82a72853f84706814ff1d36a7cc96fa65a2ba2721df64e3d
|
|
BLAKE2b-256 checksum How to use checksums |
9b32b5d93501ed9d76d4f435650e40058222354c0e4533f248e2622b3646770e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.5 Linux/4.4.0-19041-Microsoft
|
Release files / fatld-0.1.11-py3-none-any.whl
| Download URL | fatld-0.1.11-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9239ad2d4de330386d8ab6a0e95dd027f1959588d731b635e2f5035154247852
|
|
BLAKE2b-256 checksum How to use checksums |
1816d075a063ae9b55255bc936d8c1638df7032dd32908a7aa7eec0938be6540
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.5 Linux/4.4.0-19041-Microsoft
|
Security for fatld 0.1.11
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.