
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Work in progress
Open slidebook .sldy files in Python
slidebook-python
requires Python >= 3.9
pip install slidebook-python
from sld import SlideBook
sld = SlideBook("/path/to/file.sldy")
# How many acquisitions
print(sld.number_acquisitions)
# 4
# How many channels in first acquisition
print(sld.images[0].num_channels)
# Get data from channel 0 of the second acquisition
data = sld.images[1].data["ch_0"]
N.B. napari plugin is in development
import napari
import numpy as np
from sld import SlideBook
sld = SlideBook("/path/to/file.sldy")
viewer = napari.Viewer()
viewer.add_image((np.squeeze(sld.images[0].data["ch_0"])), name="Channel 0")
viewer.add_image((np.squeeze(sld.images[0].data["ch_1"])), name="Channel 1")
napari.run()
By default, Slidebook
will not load image data into memory. To force this, use mmap_mode=None
:
sld = SlideBook("/path/to/file.sldy", mmap_mode=None)
FAQs
Open slidebook .sldy files in Python
We found that slidebook-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.