-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
457 changed files
with
166,687 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0;URL='http://soft-matter.github.io/trackpy/v0.6.2/'" /> | ||
<meta http-equiv="refresh" content="0;URL='http://soft-matter.github.io/trackpy/v0.6.3/'" /> | ||
</head> | ||
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: f98e6d6cb993554fd2d4a370bc00abaa | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,282 @@ | ||
.. _api_ref: | ||
|
||
API reference | ||
============= | ||
The core functionality of trackpy is grouped into three separate steps: | ||
|
||
1. Locating features in an image | ||
2. Refining feature coordinates to obtain subpixel precision | ||
3. Identifying features through time, linking them into trajectories. | ||
|
||
Convenience functions for feature finding, refinement, and linking are readily available: | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.locate | ||
trackpy.batch | ||
trackpy.link | ||
|
||
For more control on your tracking "pipeline", the following core functions are provided: | ||
|
||
|
||
Feature finding | ||
--------------- | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.grey_dilation | ||
trackpy.find_link | ||
|
||
|
||
Coordinate refinement | ||
--------------------- | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.refine_com | ||
trackpy.refine_leastsq | ||
|
||
Linking | ||
------- | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.link | ||
trackpy.link_iter | ||
trackpy.link_df_iter | ||
trackpy.link_partial | ||
trackpy.reconnect_traj_patch | ||
|
||
|
||
:func:`~trackpy.linking.link` and :func:`~trackpy.linking.link_df_iter` run | ||
the same underlying code. :func:`~trackpy.linking.link` operates on a single | ||
DataFrame containing data for an entire movie. | ||
:func:`~trackpy.linking.link_df_iter` streams through larger data sets, | ||
in the form of one DataFrame for each video frame. | ||
:func:`~trackpy.linking.link_iter` streams through a series of numpy | ||
ndarrays. | ||
:func:`~trackpy.linking.link_partial` can patch a region of trajectories in | ||
an already linked dataset. | ||
|
||
|
||
See the tutorial on large data sets for more. | ||
|
||
Static Analysis | ||
--------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.static.proximity | ||
trackpy.static.pair_correlation_2d | ||
trackpy.static.pair_correlation_3d | ||
trackpy.static.cluster | ||
|
||
Motion Analysis | ||
--------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.motion.msd | ||
trackpy.motion.imsd | ||
trackpy.motion.emsd | ||
trackpy.motion.compute_drift | ||
trackpy.motion.subtract_drift | ||
trackpy.motion.vanhove | ||
trackpy.motion.relate_frames | ||
trackpy.motion.velocity_corr | ||
trackpy.motion.direction_corr | ||
trackpy.motion.is_typical | ||
trackpy.motion.diagonal_size | ||
trackpy.motion.theta_entropy | ||
trackpy.motion.min_rolling_theta_entropy | ||
trackpy.filtering.filter_stubs | ||
trackpy.filtering.filter_clusters | ||
|
||
Prediction Framework | ||
-------------------- | ||
|
||
Trackpy extends the Crocker--Grier algoritm using a prediction framework, described in the prediction tutorial. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.predict.NullPredict | ||
trackpy.predict.ChannelPredict | ||
trackpy.predict.DriftPredict | ||
trackpy.predict.NearestVelocityPredict | ||
trackpy.predict.predictor | ||
trackpy.predict.instrumented | ||
|
||
Plotting Tools | ||
-------------- | ||
|
||
Trackpy includes functions for plotting the data in ways that are commonly useful. If you don't find what you need here, you can plot the data any way you like using matplotlib, seaborn, or any other plotting library. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.annotate | ||
trackpy.scatter | ||
trackpy.plot_traj | ||
trackpy.annotate3d | ||
trackpy.scatter3d | ||
trackpy.plot_traj3d | ||
trackpy.plot_displacements | ||
trackpy.subpx_bias | ||
trackpy.plot_density_profile | ||
|
||
These two are almost too simple to justify their existence -- just a convenient shorthand for a common plotting task. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.mass_ecc | ||
trackpy.mass_size | ||
|
||
Image Conversion | ||
---------------- | ||
|
||
By default, :func:`~trackpy.feature.locate` applies a bandpass and a percentile-based | ||
threshold to the image(s) before finding features. You can turn off this functionality | ||
using ``preprocess=False, percentile=0``.) In many cases, the default bandpass, which | ||
guesses good length scales from the ``diameter`` parameter, "just works." But if you want | ||
to executre these steps manually, you can. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.find.percentile_threshold | ||
trackpy.preprocessing.bandpass | ||
trackpy.preprocessing.lowpass | ||
trackpy.preprocessing.scale_to_gamut | ||
trackpy.preprocessing.invert_image | ||
trackpy.preprocessing.convert_to_int | ||
|
||
Framewise Data Storage & Retrieval Interface | ||
-------------------------------------------- | ||
|
||
Trackpy implements a generic interface that could be used to store and | ||
retrieve particle tracking data in any file format. We hope that it can | ||
make it easier for researchers who use different file formats to exchange data. Any in-house format could be accessed using the same simple interface in trackpy. | ||
|
||
At present, the interface is implemented only for HDF5 files. There are | ||
several different implementations, each with different performance | ||
optimizations. :class:`~trackpy.framewise_data.PandasHDFStoreBig` is a good general-purpose choice. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.PandasHDFStore | ||
trackpy.PandasHDFStoreBig | ||
trackpy.PandasHDFStoreSingleNode | ||
trackpy.FramewiseData | ||
|
||
That last class cannot be used directly; it is meant to be subclassed | ||
to support other formats. See *Writing Your Own Interface* in the streaming tutorial for | ||
more. | ||
|
||
Logging | ||
------- | ||
|
||
Trackpy issues log messages. This functionality is mainly used to report the | ||
progress of lengthy jobs, but it may be used in the future to report details of | ||
feature-finding and linking for debugging purposes. | ||
|
||
When trackpy is imported, it automatically calls `handle_logging()`, which sets | ||
the logging level and attaches a logging handler that plays nicely with | ||
IPython notebooks. You can override this by calling `ignore_logging()` and | ||
configuring the logger however you like. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.quiet | ||
trackpy.handle_logging | ||
trackpy.ignore_logging | ||
|
||
Utility functions | ||
----------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.minmass_v03_change | ||
trackpy.minmass_v04_change | ||
trackpy.utils.fit_powerlaw | ||
|
||
Diagnostic functions | ||
-------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.diag.performance_report | ||
trackpy.diag.dependencies | ||
|
||
Low-Level API (Advanced) | ||
------------------------ | ||
|
||
Switching Between Numba and Pure Python | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Trackpy implements the most intensive (read: slowest) parts of the core feature-finding and linking algorithm in pure Python (with numpy) and also in `numba <http://numba.pydata.org/>`_, which accelerates Python code. Numba can offer a major performance boost, but it is still relatively new, and it can be challenging to use. If numba is available, trackpy will use the numba implementation by default; otherwise, it will use pure Python. The following functions allow sophisticated users to manually switch between numba and pure-Python modes. This may be used, for example, to measure the performance of these two implementations on your data. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.enable_numba | ||
trackpy.disable_numba | ||
|
||
|
||
Low-Level Linking API | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
All of the linking functions in trackpy provide the same level of control over the linking algorithm itself. For almost all users, the functions above will be sufficient. But :func:`~trackpy.linking.link_df` and :func:`~trackpy.linking.link_df_iter` above do assume that the data is stored in a pandas DataFrame. For users who want to use some other iterable data structure, the functions below provide direct access to the linking code. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.link_iter | ||
trackpy.link | ||
|
||
And the following classes can be subclassed to implement a customized linking procedure. | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.SubnetOversizeException | ||
|
||
Masks | ||
^^^^^ | ||
|
||
These functions may also be useful for rolling your own algorithms: | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trackpy.masks.binary_mask | ||
trackpy.masks.r_squared_mask | ||
trackpy.masks.x_squared_masks | ||
trackpy.masks.cosmask | ||
trackpy.masks.sinmask | ||
trackpy.masks.theta_mask | ||
trackpy.masks.gaussian_kernel | ||
trackpy.masks.mask_image | ||
trackpy.masks.slice_image | ||
|
||
Full API reference | ||
------------------ | ||
|
||
A full overview of all modules and functions can be found below: | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:recursive: | ||
|
||
trackpy | ||
|
||
.. | ||
Note: we excluded trackpy.tests in conf.py (autosummary_mock_imports) |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.close.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.close | ||
=========================== | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. automethod:: FramewiseData.close |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.dump.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.dump | ||
========================== | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. automethod:: FramewiseData.dump |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.frames.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.frames | ||
============================ | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. autoproperty:: FramewiseData.frames |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.get.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.get | ||
========================= | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. automethod:: FramewiseData.get |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.max_frame.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.max\_frame | ||
================================ | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. autoproperty:: FramewiseData.max_frame |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.put.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.put | ||
========================= | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. automethod:: FramewiseData.put |
34 changes: 34 additions & 0 deletions
34
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
trackpy.FramewiseData | ||
===================== | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. autoclass:: FramewiseData | ||
|
||
|
||
|
||
|
||
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. | ||
.. autosummary:: | ||
:toctree: | ||
FramewiseData.close | ||
FramewiseData.dump | ||
FramewiseData.get | ||
FramewiseData.put | ||
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. | ||
.. autosummary:: | ||
:toctree: | ||
FramewiseData.frames | ||
FramewiseData.max_frame | ||
FramewiseData.t_column | ||
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.FramewiseData.t_column.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.FramewiseData.t\_column | ||
=============================== | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. autoproperty:: FramewiseData.t_column |
6 changes: 6 additions & 0 deletions
6
trackpy/v0.6.3/_sources/generated/trackpy.PandasHDFStore.close.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
trackpy.PandasHDFStore.close | ||
============================ | ||
|
||
.. currentmodule:: trackpy | ||
|
||
.. automethod:: PandasHDFStore.close |
Oops, something went wrong.