Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add napari-psf-analysis to env #10

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
332129c
Rename LICENSE.md to LICENSE
maxsenh Jul 20, 2023
f00c469
Rename LICENSE to LICENSE.md
maxsenh Jul 20, 2023
6934dfd
Create python-publish.yml
maxsenh Jul 20, 2023
90ca42b
added open napari viewer in test
maxsenh Jul 20, 2023
0bdb138
Merge branch 'max_main' of https://github.com/SaraLab-Group/m25-napar…
maxsenh Jul 20, 2023
30549c7
made it installable
maxsenh Jul 20, 2023
7fa2e7b
added mypy
maxsenh Jul 20, 2023
d203562
moved tests folder into main
maxsenh Jul 20, 2023
b2aa71b
added tests.yml and run tox
maxsenh Jul 20, 2023
d6ece70
removed 3.6 from tests
maxsenh Jul 20, 2023
50c4225
added ubuntu support tox.ini
maxsenh Jul 20, 2023
da4af6a
fixed python stuff
maxsenh Jul 20, 2023
b2b092f
removed python 3.7 from tests
maxsenh Jul 20, 2023
7f71a5e
Update tox.ini
maxsenh Jul 20, 2023
d89920d
Update tox.ini
maxsenh Jul 20, 2023
4844bf2
Update tox.ini
maxsenh Jul 21, 2023
75bee47
Update tox.ini
maxsenh Jul 21, 2023
462a6a5
Update tests.yml
maxsenh Jul 21, 2023
2f78ae7
Update tox.ini
maxsenh Jul 21, 2023
5f68bd4
Update tox.ini
maxsenh Jul 21, 2023
ccf94e5
'w'
maxsenh Jul 27, 2023
dcf85e2
changed tox ini
maxsenh Jul 27, 2023
e0f46c0
removed tests
maxsenh Jul 27, 2023
24ca710
changing stuff to upload to pypi
maxsenh Jul 27, 2023
d9c9be8
trying to upload to testpypi
maxsenh Aug 1, 2023
ea10fea
rolled back to version that worked
maxsenh Aug 2, 2023
28b3f2a
removed pip setup as not necessary
maxsenh Aug 6, 2023
5d4de36
make it installable
maxsenh Aug 6, 2023
b342fcb
changed readme
maxsenh Aug 6, 2023
e09d591
Update README.md
maxsenh Aug 7, 2023
7c29e9b
Merge branch 'main' into max_main
maxsenh Aug 7, 2023
451991a
add napari-psf-analysis to env
maxsenh Aug 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 0 additions & 95 deletions .github/workflows/test_and_deploy.yml

This file was deleted.

17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# M25-napari

[![License](https://img.shields.io/pypi/l/m25-napari.svg?color=green)](https://github.com/SaraLab-Group/m25-napari/blob/main/LICENSE.md)
[![PyPI](https://img.shields.io/pypi/v/m25-napari.svg?color=green)](https://pypi.org/project/m25-napari)
[![Python Version](https://img.shields.io/pypi/pyversions/m25-napari.svg?color=green)](https://python.org)
[![tests](https://github.com/SaraLab-Group/m25-napari/workflows/tests/badge.svg)](https://github.com/SaraLab-Group/m25-napari/actions)
[![codecov](https://codecov.io/gh/SaraLab-Group/m25-napari/branch/main/graph/badge.svg)](https://codecov.io/gh/SaraLab-Group/m25-napari)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/m25-napari)](https://napari-hub.org/plugins/m25-napari)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![DOI](https://zenodo.org/badge/443224520.svg)](https://zenodo.org/badge/latestdoi/443224520)

## 🦠🔬 25 plane-camera array mutlifocus microscopy (M25) Controls and Image Visualization
Expand All @@ -28,12 +23,7 @@ https://napari.org/plugins/stable/index.html
-->

## Installation
This repository was tested with CUDA 11.2 and cuDNN 8.1 pre-installed on Windows 10.
You can install `m25-napari` via [pip]:

pip install m25-napari

To install latest development version :
This repository was tested with CUDA 11.2 and cuDNN 8.1 pre-installed on Windows 10. For install please use the latest development version :

git clone https://github.com/SaraLab-Group/m25-napari.git
cd m25-napari
Expand All @@ -46,7 +36,8 @@ Launch:
```python
napari -w m25-napari
```
The module can be run by running `napari`in the command line and selecting `m25-napari:M25 Controls` under Plugins. By Default, the demo mode is set which skips the connection to the PSoC Timing controller and the cameras and allows viewing of the GUI through Napari. If the user has setup the controller and cameras, the demo mode can be turned off by setting `demo_mode = False` in the file `src/visualizer/_widgetFunctions.py`.

The module can be run by running `napari` in the command line and selecting `m25-napari:M25 Controls` under Plugins or running `napari -w m25-napari`. By Default, the demo mode is set which skips the connection to the PSoC Timing controller and the cameras and allows viewing of the GUI through Napari. If the user has setup the controller and cameras, the demo mode can be turned off by setting `demo_mode = False` in the file `src/visualizer/_widgetFunctions.py`.

## Contributing

Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dependencies:
- magicgui==0.7.2
- markdown-it-py==2.2.0
- markupsafe==2.1.2
- matplotlib==3.5.2
- matplotlib
- matplotlib-inline==0.1.6
- mdurl==0.1.2
- mistune==2.0.5
Expand All @@ -89,6 +89,7 @@ dependencies:
- napari-console==0.0.8
- napari-plugin-engine==0.2.0
- napari-svg==0.1.7
- napari-psf-analysis
- nbclassic==1.0.0
- nbclient==0.8.0
- nbconvert==7.4.0
Expand Down
12 changes: 1 addition & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ python_requires = >=3.8
package_dir =
=src

# add your package requirements here
install_requires =
numpy <=1.23
tifffile
zarr
napari >=0.4.13
matplotib
opencv-python-headless
cupy

pyqt5 =
PyQt5
[options.packages.find]
Expand All @@ -54,4 +44,4 @@ M25_napari =

[options.entry_points]
napari.manifest =
M25_napari = visualizer:napari.yml
M25_napari = visualizer:napari.yml
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup

setup()
42 changes: 21 additions & 21 deletions src/visualizer/_tests/test_widget.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import sys
import os
import pytest
import visualizer
# this is your plugin name declared in your napari.plugins entry point
MY_PLUGIN_NAME = "m25-napari"
# the name of your widget(s)
MY_WIDGET_NAMES = ["M25Controls"]
@pytest.mark.parametrize("widget_name", MY_WIDGET_NAMES)
def test_something_with_viewer(widget_name, make_napari_viewer):
viewer = make_napari_viewer()
num_dw = len(viewer.window._dock_widgets)
viewer.window.add_plugin_dock_widget(
plugin_name=MY_PLUGIN_NAME, widget_name=widget_name
)
assert len(viewer.window._dock_widgets) == num_dw + 1

import sys
import os
import pytest
import visualizer

# this is your plugin name declared in your napari.plugins entry point
MY_PLUGIN_NAME = "m25-napari"
# the name of your widget(s)
MY_WIDGET_NAMES = ["M25Controls"]


@pytest.mark.parametrize("widget_name", MY_WIDGET_NAMES)
def test_something_with_viewer(widget_name, make_napari_viewer):
viewer = make_napari_viewer()
num_dw = len(viewer.window._dock_widgets)
viewer.window.add_plugin_dock_widget(
plugin_name=MY_PLUGIN_NAME, widget_name=widget_name
)
assert len(viewer.window._dock_widgets) == num_dw + 1

34 changes: 0 additions & 34 deletions tox.ini

This file was deleted.