You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+25-31Lines changed: 25 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
1
.. highlight:: shell
2
2
3
-
============
3
+
=============
4
4
Contributing
5
-
============
5
+
=============
6
6
7
-
Contributions are welcome, and they are greatly appreciated! Every little bit
8
-
helps, and credit will always be given.
7
+
Contributions are welcome and greatly appreciated! Every little bit helps, and credit will always be given.
9
8
10
9
You can contribute in many ways:
11
10
@@ -26,21 +25,17 @@ If you are reporting a bug, please include:
26
25
Fix Bugs
27
26
~~~~~~~~
28
27
29
-
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
30
-
wanted" is open to whoever wants to implement it.
28
+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
31
29
32
30
Implement Features
33
31
~~~~~~~~~~~~~~~~~~
34
32
35
-
Look through the GitHub issues for features. Anything tagged with "enhancement"
36
-
and "help wanted" is open to whoever wants to implement it.
33
+
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
37
34
38
35
Write Documentation
39
36
~~~~~~~~~~~~~~~~~~~
40
37
41
-
TIA Toolbox could always use more documentation, whether as part of the
42
-
official TIA Toolbox docs, in docstrings, or even on the web in blog posts,
43
-
articles, and such.
38
+
TIA Toolbox could always use more documentation, whether as part of the official TIA Toolbox docs, in docstrings, or even on the web in blog posts, articles, and such.
44
39
45
40
Submit Feedback
46
41
~~~~~~~~~~~~~~~
@@ -50,9 +45,8 @@ The best way to send feedback is to file an issue at https://github.com/TissueIm
50
45
If you are proposing a feature:
51
46
52
47
* Explain in detail how it would work.
53
-
* Keep the scope as narrow as possible, to make it easier to implement.
54
-
* Remember that this is a volunteer-driven project, and that contributions
55
-
are welcome :)
48
+
* Keep the scope as narrow as possible to make it easier to implement.
49
+
* Remember that this is a volunteer-driven project, and contributions are welcome :)
56
50
57
51
Get Started!
58
52
------------
@@ -64,7 +58,7 @@ Ready to contribute? Here's how to set up ``tiatoolbox`` for local development.
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
61
+
3. Install your local copy into a virtual environment. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
68
62
69
63
$ mkvirtualenv tiatoolbox
70
64
$ cd tiatoolbox/
@@ -76,13 +70,18 @@ Ready to contribute? Here's how to set up ``tiatoolbox`` for local development.
76
70
77
71
Now you can make your changes locally.
78
72
79
-
5. When you're done making changes, check that your changes pass flake8 and the
80
-
tests::
73
+
5. When you're done making changes, check that your changes pass pre-commit and the tests::
81
74
82
-
$ flake8 tiatoolbox tests
75
+
$ pre-commit run --all-files
83
76
$ python setup.py test or pytest
84
77
85
-
To get flake8, just pip install them into your virtualenv.
78
+
To get `pre-commit <https://pre-commit.com/#install>`_, just pip install it into your virtual environment using::
79
+
80
+
$ pip install pre-commit
81
+
82
+
To set up the git hook for pre-commit, run the following command after installing pre-commit::
83
+
84
+
$ pre-commit install
86
85
87
86
6. Commit your changes and push your branch to GitHub::
88
87
@@ -98,20 +97,15 @@ Pull Request Guidelines
98
97
Before you submit a pull request, check that it meets these guidelines:
99
98
100
99
1. The pull request should include tests.
101
-
2. If the pull request adds functionality, the docs should be updated. Put
102
-
your new functionality into a function with a docstring, and add the
103
-
feature to the list in README.rst.
104
-
3. The pull request should work for Python 3.8, 3.9 and 3.10, and for PyPy. Check
and make sure that the tests pass for all supported Python versions.
100
+
2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the pull request description.
101
+
3. The pull request should work for Python 3.9, 3.10, 3.11, and 3.12, and for PyPy. Check https://github.com/TissueImageAnalytics/tiatoolbox/actions/workflows/python-package.yml and make sure that the tests pass for all supported Python versions.
107
102
108
103
Tips
109
104
----
110
105
111
106
To run a subset of tests::
112
107
113
-
$ pytest tests.test_tiatoolbox
114
-
108
+
$ pytest tests.test_tiatoolbox
115
109
116
110
Deploying
117
111
---------
@@ -120,8 +114,8 @@ A reminder for the maintainers on how to deploy.
120
114
Make sure all your changes are committed (including an entry in HISTORY.rst).
121
115
Then run::
122
116
123
-
$ poetry version patch # use: "poetry version --help" for other options
124
-
$ git push
125
-
$ git push --tags
117
+
$ poetry version patch # use: "poetry version --help" for other options
118
+
$ git push
119
+
$ git push --tags
126
120
127
-
Travis will then deploy to PyPI if tests pass.
121
+
GitHub Actions will then deploy to PyPI if tests pass.
Copy file name to clipboardExpand all lines: README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,25 +45,21 @@
45
45
46
46
## Getting Started
47
47
48
-
TIAToolbox is a computational pathology toolbox developed by TIA Centre that provides an end-to-end API for pathology image analysis using best practices. It is based on **[PyTorch](https://pytorch.org/)**, a popular deep learning framework that enables efficient and flexible implementation of state-of-the-art algorithms. TIAToolbox supports many features through a command-line interface and can integrate with standard PyTorch modules. It also offers tools for data loading, pre-processing, model inference, post-processing, and visualization. Whether you are a computational, biomedical, or clinical researcher, TIAToolbox can help you get started in digital pathology with minimal effort.
48
+
TIAToolbox is a computational pathology toolbox developed by the TIA Centre. It provides an end-to-end API for pathology image analysis using best practices. Based on **[PyTorch](https://pytorch.org/)**, a popular deep learning framework, TIAToolbox enables efficient and flexible implementation of state-of-the-art algorithms. It supports many features through a command-line interface and can integrate with standard PyTorch modules. The toolbox offers tools for data loading, pre-processing, model inference, post-processing, and visualization. Whether you are a computational, biomedical, or clinical researcher, TIAToolbox can help you get started in digital pathology with minimal effort.
49
49
50
50
### All Users
51
51
52
-
This package is for those interested in digital pathology: including graduate students, medical staff, members of the TIA Centre and of PathLAKE, and anyone, anywhere, who may find it useful. We will continue to improve this package, taking account of developments in pathology, microscopy, computing and related disciplines. Please send comments and criticisms to **[[email protected]](mailto:[email protected])**.
53
-
54
-
**`tiatoolbox`** is a multipurpose name that we use for 1) a certain computer program, 2) a Python package of related programs, created by us at the TIA Centre to help people get started in Digital Pathology, 3) this repository, 4) a certain virtual environment.
52
+
This package is designed for those interested in digital pathology, including graduate students, medical staff, members of the TIA Centre and PathLAKE, and anyone who may find it useful. We will continue to improve this package, taking into account developments in pathology, microscopy, computing, and related disciplines. Please send comments and feedback to **[[email protected]](mailto:[email protected])**.
55
53
56
54
### Developers
57
55
58
-
Anyone wanting to contribute to this repository, please first look at our [Wiki](https://github.com/TissueImageAnalytics/tiatoolbox/wiki) and at our web page for [contributors](https://github.com/TissueImageAnalytics/tiatoolbox/blob/master/CONTRIBUTING.rst). See also the *Prepare for development* section of this document.
59
-
60
-
### Links, if needed
56
+
If you want to contribute to this repository, please first look at our [Wiki](https://github.com/TissueImageAnalytics/tiatoolbox/wiki) and our [contributor guidelines](https://github.com/TissueImageAnalytics/tiatoolbox/blob/master/CONTRIBUTING.rst). Also, see the *Prepare for development* section of this document.
61
57
62
-
The [bash](https://www.gnu.org/software/bash) shell is available on all commonly encountered platforms. Commands in this README are in bash. Windows users can use the command prompt to install conda and python packages.
58
+
### Useful Links
63
59
64
-
[conda](https://github.com/conda/conda)is a management system for software packages and [virtual environments](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/environments.html). To get `conda`, download [Anaconda](https://www.anaconda.com/), which includes hundreds of the most useful Python packages, using 2GB disk space. Alternatively, [miniconda](https://docs.conda.io/en/latest/miniconda.html) uses 400MB, and packages can be added as needed.
60
+
The [bash](https://www.gnu.org/software/bash) shell is available on all commonly encountered platforms. Commands in this README are in bash. Windows users can use the command prompt to install condaand Python packages.
65
61
66
-
[GitHub](https://github.com/about) is powered by the version control system [git](https://git-scm.com/), which has many users and uses. In GitHub, it is used to track versions of code and other documents.
62
+
[conda](https://github.com/conda/conda) is a management system for software packages and [virtual environments](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/environments.html). To get `conda`, download [Anaconda](https://www.anaconda.com/), which includes hundreds of the most useful Python packages, using 2GB of disk space. Alternatively, [miniconda](https://docs.conda.io/en/latest/miniconda.html) uses 400MB, and packages can be added as needed.
67
63
68
64
### Examples Taster
69
65
@@ -130,7 +126,7 @@ or
130
126
131
127
### License
132
128
133
-
The source code TIA Toolbox (tiatoolbox) as hosted on GitHub is released under the [BSD-3-Clause license](https://github.com/TissueImageAnalytics/tiatoolbox/blob/develop/LICENSE). The full text of the licence is included in [LICENSE](https://raw.githubusercontent.com/TissueImageAnalytics/tiatoolbox/develop/LICENSE).
129
+
The source code TIAToolbox (tiatoolbox) as hosted on GitHub is released under the [BSD-3-Clause license](https://github.com/TissueImageAnalytics/tiatoolbox/blob/develop/LICENSE). The full text of the licence is included in [LICENSE](https://raw.githubusercontent.com/TissueImageAnalytics/tiatoolbox/develop/LICENSE).
134
130
135
131
Models weights are dependent on the datasets that they were trained on. Please refer to the [documentation](https://tia-toolbox.readthedocs.io/en/latest/pretrained.html) for more details.
0 commit comments