⎣⫯ℂ: Line Integral Convolution for numpy Arrays
This package provides line integral convolution (lic) algorithms to Python.
lic image of the Kelvin-Helmholtz instability
There are functions which can be imported and are highly configurable for the power user. Moreover, there is a command line tool to generate lic images without having to code a single line.
Installation
The installation is straight forward. You can install the package via pip, pipenv, poetry and alike or by downloading the source from the gitlab repository.
From pypi.org (recommended)
Install by typing
pip install lic
or
pip install --user lic
if you do not have root access.
Please check the documentations for pipenv, and poetry for information on how to install packages with these tools.
From gitlab.com
To get the latest features or contribute to the development, you can clone the whole project using git:
git clone https://gitlab.com/szs/lic.git
Now you can, for instance, copy lic.py over to your project and import it directly or use it as a command line tool.
Usage
You can import lic in your program and use the functions directly or use the command line tool.
Importing the module
Once the package is installed where Python can find it, you can use the function lic directly.
import lic
import matplotlib.pyplot as plt
# ... get x and y arrays from somewhere ...
lic_result = lic.lic(x, y, length=30)
plt.imshow(lic_result, origin='lower', cmap='gray')
plt.show()
Find out more about the options by reading the source documentation:
pydoc lic.lic
You can also control the seed, i.e., the underlying texture for the lic:
pydoc lic.gen_seed
You can run the example from the root folder to see the result:
PYTHONPATH="." python3 examples/ex1.py
Command Line Tool
You will need npy data files (saved using numpy.save) to use lic from the command line:
lic data_x.npy data_y.npy -v -l 30 -c
See lic --help for a full list of options.
How to Contribute
If you find a bug, want to propose a feature or need help getting this package to work with your data on your system, please don’t hesitate to file an issue or write an email. Merge requests are also much appreciated!
Project links
External links
Metadata
Release files for lic 0.4.5
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 |
|---|---|---|---|---|
| lic-0.4.5.tar.gz | 205.9 kB | Without provenance | Details for lic-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lic-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for lic-0.4.5-py3-none-any.whl |
Total release size: 457.9 kB
Release files / lic-0.4.5.tar.gz
| Download URL | lic-0.4.5.tar.gz |
|---|---|
| Size | 205.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4abc323a78d1a149770542895dfc9d3b8ad5cec3442763cdbe15ffc018407d94
|
|
BLAKE2b-256 checksum How to use checksums |
129c38aa441adf4bc68d050a47d7a3544bc5134841b92e85aefdbddf7edeb923
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.10.16-zen1-1-zen
|
Release files / lic-0.4.5-py3-none-any.whl
| Download URL | lic-0.4.5-py3-none-any.whl |
|---|---|
| Size | 251.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
137e960d93bf16310d97c009fb809d15da8e381b40f1030c45bbaa8a6a0d4e63
|
|
BLAKE2b-256 checksum How to use checksums |
7e4d24b11da2465f5b5124e168b2eb6a1123e48c2802dbd8b108fe803b779945
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.10.16-zen1-1-zen
|
Security for lic 0.4.5
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.