-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from climate-processes/dev
Version 1.3 release candidate
- Loading branch information
Showing
29 changed files
with
4,632 additions
and
2,474 deletions.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: check_formatting | ||
on: [push, pull_request] | ||
jobs: | ||
formatting_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- run: pip install . | ||
- run: pip install black | ||
- run: black tobac --check | ||
|
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
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,5 @@ | ||
*.pyc | ||
__pycache__ | ||
.vscode | ||
htmlcov | ||
.coverage |
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,5 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.12b0 | ||
hooks: | ||
- id: black |
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,29 @@ | ||
### Tobac Changelog | ||
|
||
_**Version 1.3:**_ | ||
|
||
**Enhancements** | ||
|
||
- Significant performance improvements for tracking [#89](https://github.com/climate-processes/tobac/pull/89) | ||
- Significant performance improvements for feature detection and segmentation [#90](https://github.com/climate-processes/tobac/pull/90) | ||
- Performance improvement for `calculate_area` [#93](https://github.com/climate-processes/tobac/issues/93) | ||
- Added ability to set a user defined stub cell value instead of `np.nan`. Default value is `-1` and stub cell values are now integers instead of floats by default [#74](https://github.com/climate-processes/tobac/issues/93) | ||
- Added deprecation warnings for parameters `min_num` in feature detection and `d_min` in tracking, and added exceptions when multiple, incompatible parameters are given (e.g. `d_max` and `v_max`) [#107](https://github.com/climate-processes/tobac/pull/107) | ||
|
||
**Bug fixes** | ||
|
||
- Fixed level parameter in segmentation, as this previously had no effect [#92](https://github.com/climate-processes/tobac/pull/92) | ||
- Remove `is` comparisons for string literals [#99](https://github.com/climate-processes/tobac/pull/99) | ||
- Added missing `raise` for exception in `get_spacings` [#105](https://github.com/climate-processes/tobac/pull/105) | ||
- Remove automatic setting of matplotlib backend to `agg` on import [#100](https://github.com/climate-processes/tobac/pull/100) | ||
- Fix deprecation warnings for changed import paths in dependencies [#110](https://github.com/climate-processes/tobac/pull/110) | ||
|
||
**Documentation** | ||
|
||
- Added recommended python style [#72](https://github.com/climate-processes/tobac/issues/72) | ||
- Updated author list and email addresses [#109](https://github.com/climate-processes/tobac/pull/109) | ||
|
||
**Repository enhancements** | ||
|
||
- Black formatting of all python code and formatting check in actions [#78](https://github.com/climate-processes/tobac/pull/78) | ||
- Pre-commit hook for black formatting [#96](https://github.com/climate-processes/tobac/pull/96) |
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
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
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
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
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
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
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
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,12 +1,28 @@ | ||
from setuptools import setup | ||
|
||
setup(name='tobac', | ||
version='1.2', | ||
description='Tracking and object-based analysis of clouds', | ||
url='http://github.com/climate-processes/tobac', | ||
author='Max Heikenfeld', | ||
author_email='max.heikenfeld@physics.ox.ac.uk', | ||
license='GNU', | ||
packages=['tobac'], | ||
install_requires=[], | ||
zip_safe=False) | ||
setup( | ||
name="tobac", | ||
version="1.3", | ||
description="Tracking and object-based analysis of clouds", | ||
url="http://github.com/climate-processes/tobac", | ||
author=[ | ||
"Max Heikenfeld", | ||
"William Jones", | ||
"Fabian Senf", | ||
"Sean Freeman", | ||
"Julia Kukulies", | ||
"Peter Marinescu", | ||
], | ||
author_email=[ | ||
"max.heikenfeld@physics.ox.ac.uk", | ||
"william.jones@physics.ox.ac.uk", | ||
"senf@tropos.de", | ||
"sean.freeman@colostate.edu", | ||
"julia.kukulies@gu.se", | ||
"peter.marinescu@colostate.edu", | ||
], | ||
license="BSD-3-Clause License", | ||
packages=["tobac"], | ||
install_requires=[], | ||
zip_safe=False, | ||
) |
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,23 +1,63 @@ | ||
#from .tracking import maketrack | ||
from .segmentation import segmentation_3D, segmentation_2D,watershedding_3D,watershedding_2D | ||
from .centerofgravity import calculate_cog,calculate_cog_untracked,calculate_cog_domain | ||
from .plotting import plot_tracks_mask_field,plot_tracks_mask_field_loop,plot_mask_cell_track_follow,plot_mask_cell_track_static,plot_mask_cell_track_static_timeseries | ||
from .plotting import plot_lifetime_histogram,plot_lifetime_histogram_bar,plot_histogram_cellwise,plot_histogram_featurewise | ||
from .plotting import plot_mask_cell_track_3Dstatic,plot_mask_cell_track_2D3Dstatic | ||
from .plotting import plot_mask_cell_individual_static,plot_mask_cell_individual_3Dstatic | ||
# from .tracking import maketrack | ||
from .segmentation import ( | ||
segmentation_3D, | ||
segmentation_2D, | ||
watershedding_3D, | ||
watershedding_2D, | ||
) | ||
from .centerofgravity import ( | ||
calculate_cog, | ||
calculate_cog_untracked, | ||
calculate_cog_domain, | ||
) | ||
from .plotting import ( | ||
plot_tracks_mask_field, | ||
plot_tracks_mask_field_loop, | ||
plot_mask_cell_track_follow, | ||
plot_mask_cell_track_static, | ||
plot_mask_cell_track_static_timeseries, | ||
) | ||
from .plotting import ( | ||
plot_lifetime_histogram, | ||
plot_lifetime_histogram_bar, | ||
plot_histogram_cellwise, | ||
plot_histogram_featurewise, | ||
) | ||
from .plotting import plot_mask_cell_track_3Dstatic, plot_mask_cell_track_2D3Dstatic | ||
from .plotting import ( | ||
plot_mask_cell_individual_static, | ||
plot_mask_cell_individual_3Dstatic, | ||
) | ||
from .plotting import animation_mask_field | ||
from .plotting import make_map, map_tracks | ||
from .analysis import cell_statistics,cog_cell,lifetime_histogram,histogram_featurewise,histogram_cellwise | ||
from .analysis import calculate_velocity,calculate_distance,calculate_area | ||
from .analysis import ( | ||
cell_statistics, | ||
cog_cell, | ||
lifetime_histogram, | ||
histogram_featurewise, | ||
histogram_cellwise, | ||
) | ||
from .analysis import calculate_velocity, calculate_distance, calculate_area | ||
from .analysis import calculate_nearestneighbordistance | ||
from .analysis import velocity_histogram,nearestneighbordistance_histogram,area_histogram | ||
from .analysis import ( | ||
velocity_histogram, | ||
nearestneighbordistance_histogram, | ||
area_histogram, | ||
) | ||
from .analysis import calculate_overlap | ||
from .utils import mask_cell,mask_cell_surface,mask_cube_cell,mask_cube_untracked,mask_cube,column_mask_from2D,get_bounding_box | ||
from .utils import mask_features,mask_features_surface,mask_cube_features | ||
from .utils import ( | ||
mask_cell, | ||
mask_cell_surface, | ||
mask_cube_cell, | ||
mask_cube_untracked, | ||
mask_cube, | ||
column_mask_from2D, | ||
get_bounding_box, | ||
) | ||
from .utils import mask_features, mask_features_surface, mask_cube_features | ||
|
||
from .utils import add_coordinates,get_spacings | ||
from .utils import add_coordinates, get_spacings | ||
from .feature_detection import feature_detection_multithreshold | ||
from .tracking import linking_trackpy | ||
from .wrapper import maketrack | ||
from .wrapper import tracking_wrapper | ||
|
Oops, something went wrong.