semvec/pypi-packages huggingface dataset:
pyect 0.1.8
Generalized computation of the weighted Euler characteristic transform using PyTorch.
License: MIT
Requires Python: >=3.8

# pyECT

The Weighted Euler Characteristic Transform (WECT) is a mathematical tool
used to analyze and summarize geometric and topological features of data.
This package provides an efficient and simple implementation of the WECT using
PyTorch.

This codebase accompanies [this preprint](https://arxiv.org/abs/2511.03909).
If you use this package, please include the following citation in your work:
```
@misc{cisewskikehe2025vectorizedcomputationeulercharacteristic,
      title={Vectorized Computation of Euler Characteristic Functions and Transforms}, 
      author={Jessi Cisewski-Kehe and Brittany Terese Fasy and Alexander McCleary and Eli Quist and Jack Ruder},
      year={2025},
      eprint={2511.03909},
      archivePrefix={arXiv},
      primaryClass={cs.CG},
      url={https://arxiv.org/abs/2511.03909}, 
}
```

## Installation

To install `pyECT`, use pip:

```bash
pip install pyect 
```

## Usage

Here's a simple example of how to use `pyECT`:

```python
from pyect import WECT

# Example data and weight function
data = [...]  # Replace with your data
weight_function = lambda x: x**2  # Replace with your weight function

# Compute the WECT
wect = WECT(data, weight_function)
result = wect.compute()

print("WECT result:", result)
```

For more detailed examples, please see the `/examples` directory.

## Contributing

Contributions are welcome! If you'd like to contribute, please fork the
repository and submit a pull request. For major changes, please open an issue
first to discuss what you'd like to change.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE)
file for details.
pyscaffoldext-pre-commit-ruff 1.0.2
PyScaffold extension to use Ruff with pre-commit.
License: MIT
Requires Python: >=3.8

pyscaffoldext-pre-commit-ruff
=============================

`PyScaffold`_ extension to use the `Ruff Linter`_ and `Ruff Formatter`_
in place of the `Pre Commit Extension`_, ``putup --pre-commit`` defaults
`flake8`_ and `isort`_.

The ``ruff`` configuration is added to ``pyproject.toml`` because
``ruff`` does not support ``setup.cfg``. Some `Ruff Linter`_ recommended
settings are commented out, for consistency with `PyScaffold`_'s
``flake8`` settings.

`Codespell`_ is added to `pre-commit`_ configuration in
``.pre-commit-config.yaml``; uncomment to enable.

`Mypy`_ settings are added to ``setup.cfg``.

Usage
-----

Just install this package with
``pip install pyscaffoldext-pre-commit-ruff`` and note that ``putup -h``
shows a new option ``--pre-commit-ruff``. Use this flag to use the `Ruff
Linter`_ and `Ruff Formatter`_ in place of ``putup --pre-commit``
defaults `flake8`_ and `isort`_.

.. _pyscaffold-notes:

Making Changes & Contributing
-----------------------------

This project uses `pre-commit`_, please make sure to install it before
making any changes:

::

   uv tool install pre-commit
   cd pyscaffoldext-pre-commit-ruff
   pre-commit install

It is a good idea to update the hooks to the latest version:

::

   pre-commit autoupdate

Note
----

This project has been set up using PyScaffold 4.6. For details and usage
information on PyScaffold see https://pyscaffold.org/.

.. _PyScaffold: https://pyscaffold.org/
.. _Ruff Linter: https://docs.astral.sh/ruff/linter/
.. _Ruff Formatter: https://docs.astral.sh/ruff/formatter/
.. _Pre Commit Extension: https://pyscaffold.org/en/stable/features.html#pre-commit-hooks
.. _flake8: https://flake8.pycqa.org/
.. _isort: https://pycqa.github.io/isort/
.. _Codespell: https://github.com/codespell-project/codespell
.. _pre-commit: https://pre-commit.com/
.. _Mypy: https://mypy.readthedocs.io/