semvec/pypi-packages huggingface dataset:
mousechd-napari 0.0.4
A tool for heart segmentation and congenital heart defect detection in mice.
License: MIT
Requires Python: >=3.9

# Napari plugin for MouseCHD project

![](https://raw.githubusercontent.com/hnguyentt/mousechd-napari/master/assets/demo.gif)

*Tool for heart segmentation and congenital heart defect detection in mice.*

## Installation

There are several ways to run the plugin: (1) from bundle, (2) Containers (Docker or Apptainer), (3) from code

### From Bundle

(1) Install Napari by following this instruction https://napari.org/stable/tutorials/fundamentals/installation.html#install-as-a-bundled-app

(2) Install `mousechd-napari` plugin:
    * Run Napari
    * `Plugins` --> `Install/Uninstall Plugins ...` --> Search for `mousechd-napari` --> Click on `install`.

(3) Restart Napari to run the plugin


### Containers
#### Docker
##### Pull docker
```
sudo docker pull hoanguyen93/mousechd-napari
```

##### Run MouseCHD Plugin
* Run plugin with local resources:

    ```
    sudo docker run --gpus all -v <path/to/home/on/host>:<path/to/home/on/host> -it --rm -p 9876:9876 -p 6006:6006 hoanguyen93/mousechd-napari
    ```

    <details>
    <summary>Example:</summary>

    ```
    sudo docker run --gpus all -v /home/hnguyent:/home/hnguyent -it --rm -p 9876:9876 -p 6006:6006 hoanguyen93/mousechd-napari
    ```

    </details>

    Open this link on your browser: [http://localhost:9876/](http://localhost:9876/)

* Run plugin with server resources:

    * Follow [this instruction](./docs/server_setup.md) to setup running on server.
    * Copy ~/.ssh folder to a temporary location, for example in ~/Downloads: `cp -r ~/.ssh ~/Downloads/`
    * Change ownership for temporary ~/Downloads/.ssh folder: `chown -R root:root ~/Downloads/.ssh`
    * Run docker: `udo docker run --gpus all -v <path/to/home/on/host>:<path/to/home/on/host> -v /home/hnguyent/Downloads/.ssh:/root/.ssh:ro -it --rm -p 9876:9876 -p 6006:6006 hoanguyen93/mousechd-napari`
    * Open this link on your browser: [http://localhost:9876/](http://localhost:9876/)

##### Known issues
* The plugin in docker container can't display 3D view, please choose 2D view to display the sample and images.

#### Apptainer (Singularity)
If you want to run with server resource, follow [this instruction](./docs/server_setup.md) to setup running on server.

* Download Apptainer image `mousechd-napari.sif` from (Zenodo)[https://zenodo.org/records/14652180] or simply: `wget https://zenodo.org/records/14652180/files/mousechd-napari.sif`
* Run the plugin: 
```
apptainer exec \
    --nv \
    --bind /tmp/.X11-unix:/tmp/.X11-unix \
    --env DISPLAY=$DISPLAY \
    <path/to/mousechd-napari.sif> napari
```

### From code

```bash
conda create -n mousechd_napari python=3.9
conda activate mousechd_napari
pip install "napari[all]"
pip install mousechd-napari
napari
```

## How to use
Please find details instruction in folder [docs](https://github.com/hnguyentt/mousechd-napari/tree/master/docs)
youless-api 2.2.0
A bridge for python to the YouLess sensor
License: MIT

# YouLess Python Data Bridge
[![PyPI version](https://badge.fury.io/py/youless-api.svg)](https://badge.fury.io/py/youless-api)
![Python package](https://github.com/gjong/youless-python-bridge/actions/workflows/python-package.yml/badge.svg?branch=master)

This package contains support classes to fetch data from the YouLess sensors. The current implementation
supports the following YouLess devices:

* LS120, both the Enologic and the PVOutput firmware
* LS110

Experimental support for authentication was added in v0.15 of the youless-python-bridge.

## Getting started

To use the API use the following code:

```python
from youless_api.youless_api import YoulessAPI

if __name__ == '__main__':
    api = YoulessAPI("192.168.1.2")  # use the ip address of the YouLess device
    api.initialize()
    api.update()

    # from this point on on you should be able to access the sensors through the YouLess bridge
    gasUsage = api.gas_meter.value
```

To use authentication please use the snippet below (this is still experimental):

```python
from youless_api.youless_api import YoulessAPI

if __name__ == '__main__':
    api = YoulessAPI("192.168.1.2", "my-user-name", "my-password")  # use the ip address of the YouLess device
    api.initialize()
    api.update()

    # from this point on on you should be able to access the sensors through the YouLess bridge
    gasUsage = api.gas_meter.value
```

## Contributing

The Youless Python Data Bridge is an open-source project and welcomes any additions by the community.

If you would like to contribute, please fork this repository and make your desired changes.
You can then offer those changes using a pull request into this repository.

### The contributors :star2:

[![Contributors](https://contrib.rocks/image?repo=gjong/youless-python-bridge)](https://github.com/gjong/youless-python-bridge/graphs/contributors)