Skip to content

Commit

Permalink
switching to .toml configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
palec87 committed Jun 17, 2024
1 parent 0dba82e commit 01fe6d7
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 10 deletions.
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

50 changes: 50 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[metadata]
name = napari-opt-preprocessor
version = 0.0.1
author = David Palecek, Giorgia Tortora
author_email = [email protected]


url = https://github.com/palec87/opt-napari
project_urls =
Bug Tracker = https://github.com/palec87/opt-napari/issues

license = BSD-3-Clause
description = Plugin to preprocess OPT/tomography data before reconstruction.
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
Framework :: napari
Topic :: Software Development :: Testing
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Operating System :: OS Independent
License :: OSI Approved :: BSD License

[options]
packages = find:
python_requires = >=3.8


[flake8]
max-line-length = 100
ignore = E203,W503,C901,F823
max-complexity = 18
builtins = pytest
exclude = src_all/__init__.py, src_all/sample_data, src_all/sandbox
banned-modules = PyQt5 = use qtpy
PySide2 = use qtpy

install_requires =
napari-plugin-engine>=0.1.4
numpy>=1.21,<=1.23.5
matplotlib
qtpy
dask
napari
magicgui
6 changes: 3 additions & 3 deletions src_all/backtrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def set_settings(self, inplace_value: bool, track_value: bool):
self.track = track_value

def update_history(self, image: Image, data_dict: dict) -> np.ndarray:
"""Updates history if trackiing and inplace operations are selected.
"""Updates history if tracking and inplace operations are selected.
Args:
image (Image): napari image .data atribute is the np.ndarray image
image (Image): napari image .data attribute is the np.ndarray image
data_dict (dict): metadata and data for the operation to register
Raises:
Expand Down Expand Up @@ -130,7 +130,7 @@ def undo(self) -> np.ndarray:
if self.history_item == dict():
raise ValueError('No State to revert to.')

# this is completely useles I think
# this is completely useless I think
if self.history_item['operation'] == 'roi':
notifications.show_info('Reverting ROI selection')
self.roi_def = self.history_item['roi_def']
Expand Down
6 changes: 6 additions & 0 deletions src_all/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

0 comments on commit 01fe6d7

Please sign in to comment.