Did I Find It?
Project description
difi
Did I Find It?
About
difi
is a simple package that takes pre-formatted linkage information from software such as MOPS, pytrax, or THOR and analyzes which objects have been found given a set of known labels (or truths). A key performance criteria is that difi
needs to be fast by avoiding Python for loops and instead uses clever pandas.DataFrame
manipulation.
Installation
Released Versions
Anaconda
difi
can be downloaded directly from anaconda:
conda install -c moeyensj difi
Or, if preferred, installed into its own environment via:
conda create -n difi_py310 -c moeyensj difi python=3.10
Pip
difi
is also available from the Python package index:
pip install difi
Docker
A Docker container with the latest version of the code can be pulled using:
docker pull moeyensj/difi:latest
To run the container:
docker run -it moeyensj/difi:latest
The difi code is installed the /projects directory, and is by default also installed in the container's Python installation.
Latest From Source
Anaconda
Clone this repository using either ssh
or https
. Once cloned and downloaded, cd
into the repository.
To install difi in its own conda
environment please do the following:
conda create -n difi_py310 -c defaults -c conda-forge --file requirements.txt python=3.10
Or, to install difi in a pre-existing conda
environment called difi_py310
:
conda activate difi_py310
conda install -c defaults -c conda-forge --file requirements.txt
Pip
Or, to install difi
software using pip
:
pip install .
Or, if you would like to make an editable install then:
pip install -e .[tests]
You should now be able to start Python and import difi.
Docker Compose
After cloning this repository, you can build a docker image that will allow you to develop the source code:
docker compose build difi
To run the docker container interatively with a terminal:
docker compose run -it difi
Developing
If you would like to contribute to difi
, please make sure to initialize pre-commit
. Pre-commit will automatically lint and format
the source code after any changes have been staged for a commit. To load the appropriate hooks please run:
pre-commit install
Example and Tutorial
The example below can be found in greater detail in this Jupyter Notebook.
Project details
Release history Release notifications | RSS feed
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 difi-1.2rc2.tar.gz
.
File metadata
- Download URL: difi-1.2rc2.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0ed3293a4150e01fd8e16b191039eecba11ec78617fc2ac758f9d2be32f59c |
|
MD5 | 79aa68fe097a72efa7aeb480486f5246 |
|
BLAKE2b-256 | b5617b41c2d751f45bd12bf6537a1933bc856279fe0f79f8e70a2e9e54e8179f |
Provenance
File details
Details for the file difi-1.2rc2-py3-none-any.whl
.
File metadata
- Download URL: difi-1.2rc2-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8faac3f779e7de5d43ab03cafd01a95ddaf4d97951c7d2342463255b5a2a83f1 |
|
MD5 | d87b672c912c2bcfa6a01f04a4341dce |
|
BLAKE2b-256 | b33e0d3c4793579f97708212481e32c40af1722c4142bafb7f4cd0cf7fd248a5 |