Skip to content

Commit acfc974

Browse files
committed
First commit
0 parents  commit acfc974

29 files changed

+876
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.bat]
14+
indent_style = tab
15+
end_of_line = crlf
16+
17+
[LICENSE]
18+
insert_final_newline = false
19+
20+
[Makefile]
21+
indent_style = tab

.github/ISSUE_TEMPLATE.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* Fimpy version:
2+
* Python version:
3+
* Operating System:
4+
5+
### Description
6+
7+
Describe what you were trying to get done.
8+
Tell us what happened, what went wrong, and what you expected to happen.
9+
10+
### What I Did
11+
12+
```
13+
Paste the command(s) you ran and the output.
14+
If there was a crash, please include the traceback here.
15+
```

.gitignore

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
68+
# PyBuilder
69+
target/
70+
71+
# Jupyter Notebook
72+
.ipynb_checkpoints
73+
74+
# pyenv
75+
.python-version
76+
77+
# celery beat schedule file
78+
celerybeat-schedule
79+
80+
# SageMath parsed files
81+
*.sage.py
82+
83+
# dotenv
84+
.env
85+
86+
# virtualenv
87+
.venv
88+
venv/
89+
ENV/
90+
91+
# Spyder project settings
92+
.spyderproject
93+
.spyproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
104+
# IDE settings
105+
.vscode/
106+
107+
# Idea
108+
.idea/

.travis.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Config file for automatic testing at travis-ci.com
2+
3+
language: python
4+
python:
5+
- 3.8
6+
- 3.7
7+
- 3.6
8+
9+
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
10+
install:
11+
- pip install -U tox-travis
12+
13+
script:
14+
- tox
15+
16+
after_success:
17+
- pip install codecov
18+
- codecov
19+
20+
- pip install Sphinx==3.0.3
21+
- pip install sphinx_rtd_theme==0.4.3
22+
- pip install .
23+
24+
- cd docs
25+
- sphinx-apidoc ../split_dataset -o ./
26+
- make html
27+
- cd ..
28+
29+
# Assuming you have installed the travis-ci CLI tool, after you
30+
# create the Github repo and add it to Travis, run the
31+
# following command to finish PyPI deployment setup:
32+
# $ travis encrypt --add deploy.password
33+
deploy:
34+
- provider: pages
35+
skip_cleanup: true
36+
keep_history: true
37+
github_token:
38+
secure: "tDS273dCPe5xFLmNsMzkqzgHRNpb8y4MQEPSst0/jpOxXoy19v1/T0JfBj9i8bROBKGEVQnH93qDFDiqvuz8j6VIKT1HOlfHIwBvViKMfwvpCYIUioySCILxi7suCBCV7YjVw+dAntO/8Omt4Ij0QwTVgxQ6Zgj+Mlf+pzhYw9rHoYDXfzxRgV8j6GyN+XmWCC3WU4ZBXsNyZqm7vYEIcRK2Od1WYbBFbsFS0vo8gGDPxtGlj8MOCYc67jRwp3I1/WWPPVFmdFnSjSIp0Q/miQNXL2LHH7YLAgJoM2u8QRYTXSst5pIROAz7jjIHLgr+ZneeLFSSP2ukWRBKusPDAGUosMkwzTOo5yBHpu+E1FCdzE2hjt6TEUEGU4J9hQfkrwIV6rEhCNBdu3IXixQbMjcEU0Xlz38DrdiwiMMfGV3m7uDxMIHhApC3xzhv+nIHN1jI7y9qLRkz2D4qyGLnKnx7KrYBaPll1ZdpPOXSujsNT24dt4Re2Ihf9UKUg8v1MN1+NfZt7rm60fe9ZPLNlGV+xs6C4uXRgkOyzFog397nHFUe5HtVMiPmqgNQ7ZbH0EACvz3pzhJVlksvwYy18ejBEK8fepc7H/dPDe6h8LeVnLMVh9c9g516J7knGoZ1Xu7O0Eq83bn3xzcKal4iSzwFgix42x4h7YYtHqZDSlg="
39+
on:
40+
tags: true
41+
branch: master
42+
python: 3.8
43+
local-dir: docs/_build/html
44+
committer-from-gh: true
45+
46+
- provider: pypi
47+
skip_cleanup: true
48+
distributions: sdist bdist_wheel
49+
user: __token__
50+
password:
51+
secure: 4Om4fLif+gfVoYYm86uqdCKXSrDojq50XcSA4cLUmtz+mbugp9ewTbucYPHLqWm7LJw/0QixgstD8ivcFKwGXMh1K8vLG80ptOksVKkC2N7kznt+Mx1Kw57ryUmu+PGKb52iKeXDsNiLJcjPjvl9v1E2SA7iCvsP0ClV+n8+dsiXatoftsE9IB18ZbEGGrp8Wq6F2bgS/QQVvCx4MUXV5vJJxYlTnx9TZv1t8kcTtvt6fKT12vzImq6hLpooNInr9GHPm6zQk9+6ibCfSuWD8wFJfi60yiJxAmWhyc7mFc2UtuIVac34E0FAQPT0PGDXZnB+xqTGNJD/3CKkI+AwCO3QaUV6w4vLlNAcZUaAYl/ZPkCOsGIBJ4QVt25vJE9/qFJ2yAzjFJSUDoszztwvogcDwq0kGFMUGC3w4Wkqesqq2FtDQ7deKxO0vKeOFkP40uzPuUtEWVoJ3fRr66WyA+Br0EhhWRudaTlN/MSTK+SgwgFwmz8iiLBvL7BOHoPefDwgK0Z4G+692M8mLgwaOgEkztelFpL6YWH7IirbT2xzESMnJ8yQ7x+AOm1QZocdrZac3trfckMQUIzQgc+o/Ycsh+bwFE88GZdbC8+x1nlI7VkhoMHfPmRJgzXwDYk31ttKFmhTOKCxa6LqwpS15WAyPNFeFx4OArzGxVhnTXc=
52+
on:
53+
tags: true
54+
branch: master
55+
python: 3.8
56+
skip_existing: true

AUTHORS.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=======
2+
Credits
3+
=======
4+
5+
Development Lead
6+
----------------
7+
8+
* Luigi Petrucco & Vilim Stih @portugueslab <[email protected]>
9+
10+
Contributors
11+
------------
12+
13+
None yet. Why not be the first?

CONTRIBUTING.rst

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
.. highlight:: shell
2+
3+
============
4+
Contributing
5+
============
6+
7+
Contributions are welcome, and they are greatly appreciated! Every little bit
8+
helps, and credit will always be given.
9+
10+
You can contribute in many ways:
11+
12+
Types of Contributions
13+
----------------------
14+
15+
Report Bugs
16+
~~~~~~~~~~~
17+
18+
Report bugs at https://github.com/portugueslab/fimpy/issues.
19+
20+
If you are reporting a bug, please include:
21+
22+
* Your operating system name and version.
23+
* Any details about your local setup that might be helpful in troubleshooting.
24+
* Detailed steps to reproduce the bug.
25+
26+
Fix Bugs
27+
~~~~~~~~
28+
29+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
30+
wanted" is open to whoever wants to implement it.
31+
32+
Implement Features
33+
~~~~~~~~~~~~~~~~~~
34+
35+
Look through the GitHub issues for features. Anything tagged with "enhancement"
36+
and "help wanted" is open to whoever wants to implement it.
37+
38+
Write Documentation
39+
~~~~~~~~~~~~~~~~~~~
40+
41+
Fimpy could always use more documentation, whether as part of the
42+
official Fimpy docs, in docstrings, or even on the web in blog posts,
43+
articles, and such.
44+
45+
Submit Feedback
46+
~~~~~~~~~~~~~~~
47+
48+
The best way to send feedback is to file an issue at https://github.com/portugueslab/fimpy/issues.
49+
50+
If you are proposing a feature:
51+
52+
* 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 :)
56+
57+
Get Started!
58+
------------
59+
60+
Ready to contribute? Here's how to set up `fimpy` for local development.
61+
62+
1. Fork the `fimpy` repo on GitHub.
63+
2. Clone your fork locally::
64+
65+
$ git clone [email protected]:your_name_here/fimpy.git
66+
67+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
68+
69+
$ mkvirtualenv fimpy
70+
$ cd fimpy/
71+
$ python setup.py develop
72+
73+
4. Create a branch for local development::
74+
75+
$ git checkout -b name-of-your-bugfix-or-feature
76+
77+
Now you can make your changes locally.
78+
79+
#### Formatting
80+
Fimpy uses [Black](https://github.com/python/black) to ensure a consistent
81+
code style. Please run `black ./ -l 79 --target-version py37` before making
82+
any commits. To prevent any errors, it is easier to add a formatting check
83+
as a [pre-commit hook](https://www.atlassian.com/git/tutorials/git-hooks).
84+
E.g. on linux by adding this to your `.git/hooks/pre-commit`:
85+
86+
black ./ -l 79 --target-version py37 --check || exit 1
87+
88+
89+
6. Commit your changes and push your branch to GitHub::
90+
91+
$ git add .
92+
$ git commit -m "Your detailed description of your changes."
93+
$ git push origin name-of-your-bugfix-or-feature
94+
95+
7. Submit a pull request through the GitHub website.
96+
97+
Pull Request Guidelines
98+
-----------------------
99+
100+
Before you submit a pull request, check that it meets these guidelines:
101+
102+
1. The pull request should include tests.
103+
2. If the pull request adds functionality, the docs should be updated. Put
104+
your new functionality into a function with a docstring, and add the
105+
feature to the list in README.rst.
106+
3. The pull request should work for Python 3.6, 3.7 and 3.8, and for PyPy. Check
107+
https://travis-ci.com/portugueslab/fimpy/pull_requests
108+
and make sure that the tests pass for all supported Python versions.
109+
110+
Tips
111+
----
112+
113+
To run a subset of tests::
114+
115+
$ pytest tests.test_fimpy
116+
117+
118+
Deploying
119+
---------
120+
121+
A reminder for the maintainers on how to deploy.
122+
Make sure all your changes are committed (including an entry in HISTORY.rst).
123+
Then run::
124+
125+
$ bump2version patch # possible: major / minor / patch
126+
$ git push
127+
$ git push --tags
128+
129+
Travis will then deploy to PyPI if tests pass.

HISTORY.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=======
2+
History
3+
=======
4+
5+
0.1.0 (2020-05-07)
6+
------------------
7+
8+
* First release on PyPI.

LICENSE

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
GNU GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
A python package for parallelizable processing of fluorescent imaging data
5+
Copyright (C) 2020 Luigi Petrucco & Vilim Stih @portugueslab
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
20+
Also add information on how to contact you by electronic and paper mail.
21+
22+
You should also get your employer (if you work as a programmer) or school,
23+
if any, to sign a "copyright disclaimer" for the program, if necessary.
24+
For more information on this, and how to apply and follow the GNU GPL, see
25+
<http://www.gnu.org/licenses/>.
26+
27+
The GNU General Public License does not permit incorporating your program
28+
into proprietary programs. If your program is a subroutine library, you
29+
may consider it more useful to permit linking proprietary applications with
30+
the library. If this is what you want to do, use the GNU Lesser General
31+
Public License instead of this License. But first, please read
32+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
33+

0 commit comments

Comments
 (0)