semvec/pypi-packages huggingface dataset:
numpy2ometiff 0.1.4
Convert NumPy arrays to OME-TIFF
Requires Python: >=3.6


# numpy2ometiff

`numpy2ometiff` is a Python library designed to convert NumPy arrays into OME-TIFF files. This library facilitates exporting scientific imaging data to the OME-TIFF format, which is ideal for microscopy and bioimaging applications.

## Features

- **Simple API**: Convert NumPy arrays to OME-TIFF with a single function call.
- **Flexible Input**: Supports single and multi-dimensional arrays (2D, 3D, 4D) representing multiple channels and z-slices.
- **Customizable Metadata**: Allows users to specify pixel sizes and channel information.
- **Optional Pyramid Creation**: Enable pyramid OME-TIFF files for large datasets, improving performance in compatible viewers.

## Installation

You can install `numpy2ometiff` directly via pip:

```bash
pip install numpy2ometiff
```
## Example Usage

This example demonstrates how to convert a NumPy array into an OME-TIFF file using the `numpy2ometiff` library. It assumes you have already installed `numpy2ometiff` as described in the installation section.

```python
import numpy as np
from numpy2ometiff import write_ome_tiff

# Generate a dummy numpy array
data = np.random.rand(1, 3, 256, 256).astype(np.float32)  # 1 z-slice, 3 channels, 256x256 pixels

# Define channel names
channel_names = ['DAPI', 'GFP', 'RFP']

# Define pixel sizes and physical size in Z
pixel_size_x = 0.65  # micron
pixel_size_y = 0.65  # micron
physical_size_z = 0.2  # micron

# Specify the output filename
output_filename = 'output_test_image.ome.tiff'

# Write the OME-TIFF file
write_ome_tiff(data=data,
               output_filename=output_filename,
               channel_names=channel_names,
               pixel_size_x=pixel_size_x,
               pixel_size_y=pixel_size_y,
               physical_size_z=physical_size_z,
               Unit='µm',
               imagej=False, 
               create_pyramid=True,
               compression='zlib')

print("The OME-TIFF file has been successfully written.")
```

## Contributing

Contributions to `numpy2ometiff` are welcome! Feel free to fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the BSD 3-Clause License - see the [LICENSE](LICENSE) file for details.
samudra-scale 0.1.2
A python library for extracting weights from byte data
Requires Python: >=3.6

# Samudra Scale

This Library helps you extract weight from byte data encoded in a specific way, by mapping byte sequences to numeric digits

## Example usage:

```python
from samudra_scale import decode_bytes

data = b'S\xd4\xacGS\xac+\xa000\xb8950\xeb\xe7\x8d\n'
weight = decode_bytes(data)
print(weight) # 8950
```
pyplanet-afk-spec 0.7.2
A Pyplanet server controller plugin to automatically move players to spectator mode if they are AFK.
Requires Python: >=3.7

# afk

PyPlanet plugin to detect AFK players and move them into spectator mode.

This plugin works by repeatedly querying the player's inputs and checking if the player is currently steering, braking or pressing the gas pedal.
If the player is found not to be pressing any inputs for a (configurable) period of time, they are considered AFK and moved to spectator.

The plugin also lets you adda a button to rejoin the game for new players who may be confused with the spectator mode.

### Installation

    python -m pip install --upgrade pyplanet-afk-spec

Then open `settings/apps.py` with a text editor and append to the list in 'default':

    'feor.afk'

### Configuration

- AFK Duration Allowed: Duration players can stay inactive until they are declared AFK, in seconds. [Default: 120]

- AFK Check Frequency: Time to wait before querying a player's inputs again, in ms. Lower values may impact performance. [Default: 1000]

- AFK Wait: Time to wait before checking again whether a player is AFK, in seconds. [Default: 10]

- Display AFK Message: If this setting is enabled, a message will be displayed when a player is moved to spectator. [Default: True]

- AFK Message: Message to display when a player is moved to spectator. Use `{nickname}` to insert the player's nickname. [Default: `{nickname}$z has been moved to spectator due to inactivity.`]

- Display Rejoin Button: If this setting is enabled, players in spectator mode will see a "Rejoin Game" button at the center of the screen.


### Changelog

0.7.2

- Renamed plugin

0.7.1

- Moved position of rejoin button and added icon

0.7.0

- Added a rejoin button that displays for players in spectator mode
- Added a setting to disable the rejoin button

0.6.0

- Removed Grace Period/Timeout Delay settings in favor of a single AFK Wait setting
- Added Display AFK Message setting
- Added AFK Message setting
- Refactored AFK checking code and removed some checks (PendingEvents, UISequence)
pyplanet-afk 0.7.2
A Pyplanet server controller plugin to automatically move players to spectator mode if they are AFK.
Requires Python: >=3.7

# afk

PyPlanet plugin to detect AFK players and move them into spectator mode.

This plugin works by repeatedly querying the player's inputs and checking if the player is currently steering, braking or pressing the gas pedal.
If the player is found not to be pressing any inputs for a (configurable) period of time, they are considered AFK and moved to spectator.

The plugin also lets you adda a button to rejoin the game for new players who may be confused with the spectator mode.

### Installation

    python -m pip install --upgrade pyplanet-afk-spec

Then open `settings/apps.py` with a text editor and append to the list in 'default':

    'feor.afk'

### Configuration

- AFK Duration Allowed: Duration players can stay inactive until they are declared AFK, in seconds. [Default: 120]

- AFK Check Frequency: Time to wait before querying a player's inputs again, in ms. Lower values may impact performance. [Default: 1000]

- AFK Wait: Time to wait before checking again whether a player is AFK, in seconds. [Default: 10]

- Display AFK Message: If this setting is enabled, a message will be displayed when a player is moved to spectator. [Default: True]

- AFK Message: Message to display when a player is moved to spectator. Use `{nickname}` to insert the player's nickname. [Default: `{nickname}$z has been moved to spectator due to inactivity.`]

- Display Rejoin Button: If this setting is enabled, players in spectator mode will see a "Rejoin Game" button at the center of the screen.


### Changelog

0.7.2

- Renamed plugin

0.7.1

- Moved position of rejoin button and added icon

0.7.0

- Added a rejoin button that displays for players in spectator mode
- Added a setting to disable the rejoin button

0.6.0

- Removed Grace Period/Timeout Delay settings in favor of a single AFK Wait setting
- Added Display AFK Message setting
- Added AFK Message setting
- Refactored AFK checking code and removed some checks (PendingEvents, UISequence)