-
Notifications
You must be signed in to change notification settings - Fork 0
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 #14 from rhoitink/develop
Pull request for v1.6.0
- Loading branch information
Showing
17 changed files
with
262 additions
and
96 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ htmlcov | |
site | ||
*.xyz | ||
*.ipynb | ||
src/simulatedmicroscopy/_version.py |
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,16 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml # checks for correct yaml syntax for github actions ex. | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.2.2 | ||
hooks: | ||
- id: ruff | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
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
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,56 @@ | ||
[build-system] | ||
requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/simulatedmicroscopy/_version.py" | ||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py38', 'py39', 'py310', 'py311'] | ||
|
||
[tool.ruff] | ||
line-length = 79 | ||
select = [ | ||
"E", "F", "W", #flake8 | ||
"UP", # pyupgrade | ||
"I", # isort | ||
"BLE", # flake8-blind-exception | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"ISC", # flake8-implicit-str-concat | ||
"G", # flake8-logging-format | ||
"PIE", # flake8-pie | ||
"SIM", # flake8-simplify | ||
] | ||
|
||
ignore = [ | ||
"E501", | ||
"E203", | ||
] | ||
|
||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".mypy_cache", | ||
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"*vendored*", | ||
"*_vendor*", | ||
] | ||
|
||
target-version = "py38" | ||
fix = true |
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,2 +1,61 @@ | ||
[flake8] | ||
ignore=E501,E203,W503 | ||
[metadata] | ||
name = simulatedmicroscopy | ||
|
||
description = Python package to create synthetic (fluorescence) microscopy images of (nano)particles and convolution with a point spread function | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/rhoitink/simulatedmicroscopy | ||
author = Roy Hoitink | ||
author_email = L.D.Hoitink@uu.nl | ||
license = MIT | ||
license_files = LICENSE | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
Topic :: Scientific/Engineering :: Image Processing | ||
project_urls = | ||
Bug Tracker = https://github.com/rhoitink/simulatedmicroscopy/issues | ||
Documentation = https://github.com/rhoitink/simulatedmicroscopy#README.md | ||
Source Code = https://github.com/rhoitink/simulatedmicroscopy | ||
User Support = https://github.com/rhoitink/simulatedmicroscopy/issues | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
numpy | ||
matplotlib | ||
h5py | ||
scipy | ||
scikit-image>=0.20.0 | ||
|
||
python_requires = >=3.8 | ||
include_package_data = True | ||
package_dir = | ||
=src | ||
setup_requires = setuptools_scm | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.extras_require] | ||
dev = | ||
black | ||
flake8 | ||
pytest | ||
pytest-cov | ||
docs = | ||
mkdocs | ||
mkdocs-material | ||
mkdocstrings[python] | ||
mkdocs-gen-files | ||
mkdocs-literate-nav |
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
from .image import HuygensImage, Image | ||
from .input import Coordinates | ||
from .particle import Cube, PointParticle, Shell, Sphere, Spherocylinder | ||
from .psf import GaussianPSF, HuygensPSF | ||
|
||
try: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
__version__ = "unknown" | ||
|
||
__all__ = [ | ||
"Coordinates", | ||
"Image", | ||
"HuygensImage", | ||
"HuygensPSF", | ||
"GaussianPSF", | ||
"PointParticle", | ||
"Sphere", | ||
"Shell", | ||
"Spherocylinder", | ||
"Cube", | ||
] |
Oops, something went wrong.