Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

pyfof

Friends of Friends cluster finding in python.

This implements the friends-of-friends algorithm to find clusters of points, accelerated with an R*-tree.

Requirements

  • c++11 complient compiler
  • Cython (for the development version only)
  • numpy
  • boost

Installation

If your boost installation is in a normal place you should just be able to install the latest release of the package directly from PyPI

pip install pyfof

If that fails then you will need to tell pip where to find your boost include directory. This can be done by creating a file in your home directory called .pydistutils.cfg containing:

[build_ext]
include_dirs=/path/to/boost/include/directory

and then running the above command.

Examples

Two Gaussian blobs

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import pyfof

npts = 10000
data = np.vstack((np.random.normal(-1,0.2,(npts/2,2)),\
                  np.random.normal(1,0.2,(npts/2,2))))

groups = pyfof.friends_of_friends(data, 0.4)

colors = cm.rainbow(np.linspace(0, 1, len(groups)))
for g,c in zip(groups, colors):
    plt.scatter(data[g,0], data[g,1], color=c, s=3)

plt.show()

gaussian_example

A more complicated example

stream_example

Metadata

Release files for pyfof 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for pyfof 0.1.5
File Size Uploaded Provenance Actions
pyfof-0.1.5.tar.gz 56.5 kB Without provenance Details for pyfof-0.1.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyfof 0.1.5
File Actions
pyfof-0.1.5-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp38-cp38-manylinux1_x86_64.whl
pyfof-0.1.5-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp37-cp37m-manylinux1_x86_64.whl
pyfof-0.1.5-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp36-cp36m-manylinux1_x86_64.whl
pyfof-0.1.5-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp35-cp35m-manylinux1_x86_64.whl
pyfof-0.1.5-cp34-cp34m-manylinux1_x86_64.whl CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp34-cp34m-manylinux1_x86_64.whl
pyfof-0.1.5-cp27-cp27mu-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp27-cp27mu-manylinux1_x86_64.whl
pyfof-0.1.5-cp27-cp27m-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 Details for pyfof-0.1.5-cp27-cp27m-manylinux1_x86_64.whl

Total release size: 8.6 MB

Release files / pyfof-0.1.5.tar.gz

Download URL pyfof-0.1.5.tar.gz
Size 56.5 kB
Tags Source
SHA-256 checksum
How to use checksums
370b3a43319211d7ba40c2ea135a55425f0967f412c768f8b8814ad352494f58
BLAKE2b-256 checksum
How to use checksums
18818078c1b0114dd6357f609847675386a17430d495a5a19a8103f50ea3956f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp38-cp38-manylinux1_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL pyfof-0.1.5-cp38-cp38-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
dc810914c7d84ed0826c4f8550ae59ebdacd80355d78f168476b7263ca17f232
BLAKE2b-256 checksum
How to use checksums
a1a538fa582205d0106a96bb21172919a118a598d0366512cbda6f3473fedd79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Release files / pyfof-0.1.5-cp37-cp37m-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp37-cp37m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0ae24730738737220f7acb19bdfdea1fdb338c0f30b21b53269a00a128956a61
BLAKE2b-256 checksum
How to use checksums
165ce04c0d0cf400041295a44a22a1d8761cc555d49e58449e9bc98494af3ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp36-cp36m-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp36-cp36m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
29fb5a565ce0ff1a489317a62335661d733d29ca040779fe7c801cd8dc52d92f
BLAKE2b-256 checksum
How to use checksums
7c7d8eb5bec63c9d9d9cf97b501e7d9edafd8fc2fd8f012040ed940489d405e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp35-cp35m-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp35-cp35m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
b79f0aff8344a3c7b5d1ed7ac5aaa5f4611320643fcf1ed8bacad1c1ac2b3a43
BLAKE2b-256 checksum
How to use checksums
391e91ee0998c2fc80d8cd6bf378a4bda02477516a7419678fd4542a8716270a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp34-cp34m-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp34-cp34m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
410fe55228d7063dd9006c94c9638a474cb72e64dee422a93eef134248fd4db7
BLAKE2b-256 checksum
How to use checksums
239270afa090f162b794b1c5d8e644b899eb7a017a0d2385a60c5d706c686961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp27-cp27mu-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp27-cp27mu-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
dce6cf1625382e5b1f7b2bf6c718d83fa67698dac28dc75f3b0f34a893dac911
BLAKE2b-256 checksum
How to use checksums
59747aa54c8726feacbc481c68672ff52bf779ddc6f2187ff3fc309f37cf9a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / pyfof-0.1.5-cp27-cp27m-manylinux1_x86_64.whl

Download URL pyfof-0.1.5-cp27-cp27m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
b91733db08769a01e659524ad1938c519ec31fa98df438aade69cc33e0ea40b2
BLAKE2b-256 checksum
How to use checksums
f471db94a386a38e77196dbe60d360e6db724f61c98fd627949023d82bcac099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for pyfof 0.1.5

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page