Ngawari
Ngawari is a Python-based toolkit for simplifying operations in data analysis and processing, particularly focused on medical imaging and computational geometry. It is built heavily on top of the VTK library.
Features
- Advanced geometric calculations and transformations
- Medical imaging data processing
- Statistical analysis tools
- 3D visualization capabilities
Installation
To install Ngawari, run the following command:
pip install ngawari
Usage
Here's a quick example of how to use Ngawari:
from ngawari import ftk, fIO, vtkfilters
import numpy as np
# Create a simple sphere
sphere = vtkfilters.buildSphereSource([0, 0, 0], radius=1.0)
# Get points as numpy array
points = vtkfilters.getPtsAsNumpy(sphere)
# Add a scalar array
vtkfilters.setArrayFromNumpy(sphere, points[:, 0], "x_coords", SET_SCALAR=True)
# Apply a filter
smoothed = vtkfilters.smoothTris(sphere, iterations=10)
# Write to file
fIO.writeVTKFile(smoothed, "smoothed_sphere.vtp")
# Build image over sphere:
image = vtkfilters.buildRawImageDataFromPolyData(smoothed, res=[0.1,0.1,0.1])
# Add a scalar array to the image
vtkfilters.setArrayFromNumpy(image, np.random.rand(image.GetNumberOfPoints()), "random_scalar", SET_SCALAR=True)
# Null scalars outside sphere
image_nulled = vtkfilters.filterNullOutsideSurface(image, smoothed)
# Write to file
fIO.writeVTKFile(image_nulled, "image_over_sphere.vti")
For more detailed usage instructions, please refer to the documentation.
Documentation
Full documentation is available at https://fraser29.github.io/ngawari/
Contributing
We welcome contributions! Please see our Contributing Guide for more details.
License
Ngawari is released under the MIT License. See the LICENSE file for more details.
Contact
For any questions or support, please open an issue on our GitHub repository or contact us at support@ngawari.com.
Dependencies
This project uses the following major dependencies:
- VTK (BSD 3-Clause License) - https://vtk.org/
Metadata
Release files for ngawari 0.1.21
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 |
|---|---|---|---|---|
| ngawari-0.1.21.tar.gz | 79.4 kB | Without provenance | Details for ngawari-0.1.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ngawari-0.1.21-py3-none-any.whl | Python 3 | none | any | Details for ngawari-0.1.21-py3-none-any.whl |
Total release size: 146.1 kB
Release files / ngawari-0.1.21.tar.gz
| Download URL | ngawari-0.1.21.tar.gz |
|---|---|
| Size | 79.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14a6380a4b9aa2f74eb57de5bd1b54044bc566eaf951eae93c698afdbf69bf0c
|
|
BLAKE2b-256 checksum How to use checksums |
193679a05e5c3990bff79f6fbe3a0db6804b5f7422859244dec8bc6af9478d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / ngawari-0.1.21-py3-none-any.whl
| Download URL | ngawari-0.1.21-py3-none-any.whl |
|---|---|
| Size | 66.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76d5445b04d0fc24b2565ea941a524a624849358795120a32e5628d60525ca18
|
|
BLAKE2b-256 checksum How to use checksums |
26a4ef134065333602657eb919a00050698823ddfcd806b7dd780af5167c2117
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for ngawari 0.1.21
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.