Skip to main content

AnomalousLib is a Python library designed for the study of anomalous diffusion. It enables dataset generation, statistical analysis, model inference, and integrated result visualization.

Project description

AnomalousLib

AnomalousLib is a Python library designed for the study of anomalous diffusion.

It supports dataset generation, statistical analysis, model inference, and integrated result visualization.

The library is published on PyPI under the name AnomalousLib and uses Python version 3.12.10 or later.

Repository Structure

The following diagram shows the structure of the repository:

AnomalousLib
   # Package builds
├───dist
   # Source code
├───src
   └───anomalouslib
          # Analytical tools and metrics
       ├───analysis
          # Dataset handling and generation
       ├───data
          # Model definitions and inference
       ├───models
          # Output handling and reporting
       ├───results
          # Utility functions and helpers
       └───utils
   # QA and testing
└───tests

Development Setup

To test the library locally, follow these steps. All commands should be run from the root of the project, where the pyproject.toml file is located.

1. Set Up the Virtual Environment

First, create a virtual environment:

python -m venv venv

Then activate it:

  • On Linux/macOS:
    source venv/bin/activate
    
  • On Windows:
    .\venv\Scripts\Activate.ps1
    

💡 Note: To deactivate the environment at any time (on both Linux and Windows), use:

deactivate

2. Install Dependencies

Install the required libraries listed in requirements.txt:

pip install -r requirements.txt

To verify the installation, you can regenerate the requirements.txt and check for any differences:

  • On Linux/macOS:
    pip freeze | grep -vE "^-e |@ file://" > requirements.txt
    
  • On Windows:
    pip freeze | Select-String -NotMatch '^-e |@ file://' > requirements.txt
    

💡 Note: This filtering step avoids including the local installation of the library itself.

If no changes appear in the file, the setup is correct.

Local Build & Installation

1. Build the Library

Generate the distribution packages:

python -m build

2. Install the Library Locally

  • First-time installation (or to force reinstall):
    pip install ./dist/anomalouslib-{lib_version}-py3-none-any.whl --force-reinstall
    
  • Subsequent updates (faster and applies only changes):
    pip install --upgrade ./dist/anomalouslib-{lib_version}-py3-none-any.whl
    

💡 Note: Replace {lib_version} with the actual library version, e.g.: pip install --upgrade ./dist/anomalouslib-0.1.0-py3-none-any.whl

Publishing to PyPI

To publish the package to PyPI, run:

twine upload ./dist/*

⚠️ Important: Make sure no version in the ./dist/ folder has already been uploaded to PyPI.

As stated on the PyPI page, to install AnomalousLib on other environments:

pip install anomalouslib

💡 It is strongly recommended not to install the public PyPI version in the same local environment to avoid confusion with the local development version.

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

anomalouslib-0.2.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anomalouslib-0.2.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file anomalouslib-0.2.1.tar.gz.

File metadata

  • Download URL: anomalouslib-0.2.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for anomalouslib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 067e24f073220881e8dffb47de9733bd098c78edf4cf859adaab1c2ebd9d4da4
MD5 2be3bb0ec15c745e44a63f260e44e5ad
BLAKE2b-256 370e7926b8fcf5028ce4c8ecad5891ea54a0344193cc62c81787d979672bd1e0

See more details on using hashes here.

File details

Details for the file anomalouslib-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: anomalouslib-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for anomalouslib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a017bee9f355aaa567ecb12f5d3c59c0599a67fd4cc77207c5c73f3c91aeb418
MD5 da4d5e0b64861265c5cb9260950c9f32
BLAKE2b-256 6a54c532171a3d8a03ad7cb871ef9162783779dc8cb458682bbf4adc2a9d66c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page