Approximate the structure factor of a stationary point process, test its effective hyperuniformity, and identify its class of hyperuniformity.
Project description
structure-factor
Approximate the structure factor of a stationary point process, test its effective hyperuniformity, and identify its class of hyperuniformity.
Introduction
structure-factor
is an open-source Python project which currently collects
- various estimators of the structure factor,
- and several diagnostics of hyperuniformity,
for stationary and isotropic point processes.
Please checkout the documentation for more details.
Dependencies
-
R programming language, since we call the
spatstat
R package to estimate the pair correlation function of point processes usingspatstat-interface
. -
Python dependencies are listed in the
pyproject.toml
file.
Installation
Once installed it can be called from
import structure_factor
from structure_factor import ...
Install the project as a dependency
-
Install the latest version published on
# activate your virtual environment an run poetry add structure-factor # poetry add structure-factor@latest to update if already present # pip install --upgrade structure-factor
-
Install from source (this may be broken)
# activate your virtual environment and run poetry add git+https://github.com/For-a-few-DPPs-more/structure-factor.git # pip install git+https://github.com/For-a-few-DPPs-more/structure-factor.git
Install in editable mode and potentially contribute to the project
The package can be installed in editable mode using poetry
.
To do this, clone the repository:
-
if you considered forking the repository
git clone https://github.com/your_user_name/structure-factor.git
-
if you have not forked the repository
git clone https://github.com/For-a-few-DPPs-more/structure-factor.git
and install the package in editable mode
cd structure-factor
poetry shell # to create/activate local .venv (see poetry.toml)
poetry install
# poetry install --no-dev # to avoid installing the development dependencies
# poetry add -E docs -E notebook # to install extra dependencies
Documentation
- generated using Sphinx, and
- published via the GitHub workflow file .github/workflows/docs.yml.
Build the documentation
If you use poetry
-
install the documentation dependencies (see
[tool.poetry.extras]
inpyproject.toml
)cd structure-factor poetry shell # to create/activate local .venv (see poetry.toml) poetry install -E docs # (see [tool.poetry.extras] in pyproject.toml)
-
and run
# cd structure-factor # poetry shell # to create/activate local .venv (see poetry.toml) poetry run sphinx-build -b html docs docs/_build/html open _build/html/index.html
Otherwise, if you don't use poetry
-
install the documentation dependencies (listed in
[tool.poetry.extras]
inpyproject.toml
), and -
run
cd structure-factor # activate a virtual environment pip install '.[notebook]' # (see [tool.poetry.extras] in pyproject.toml) sphinx-build -b html docs docs/_build/html open _build/html/index.html
Getting started
Documentation
Notebooks
Jupyter that showcase structure-factor
are available in the ./notebooks folder.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file structure-factor-2.0.1.tar.gz
.
File metadata
- Download URL: structure-factor-2.0.1.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.2 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8acde20bc9d616a5083c64bdfcdf5b06ece22db481446ee09a801099384a157 |
|
MD5 | defeb6111d2985663e9d0d0efb54cecb |
|
BLAKE2b-256 | dc5f9ca5cbe680e479e88bb2b2bfc8bf632d5e785b607af26d83a92f1f7f9d1a |
File details
Details for the file structure_factor-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: structure_factor-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.2 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0ab44ad46ca455dae34b86e214097adbb0d09e851973bb9310d51a31a32a55 |
|
MD5 | 24b0d6883faae8d45f34bef6ad6e70d4 |
|
BLAKE2b-256 | 445b5ea6ee19b2793e3af6056333911f26148aa7e430c2506605a71f7d3e9408 |