Skip to content

Commit

Permalink
Update imio dependency change (#168)
Browse files Browse the repository at this point in the history
* Update NIU actions

* Update refs to imio -> brainglobe-utils.image_io

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
willGraham01 and pre-commit-ci[bot] committed Feb 12, 2024
1 parent 54dc76d commit 220ae49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v1
- uses: neuroinformatics-unit/actions/lint@v2

manifest:
name: Check Manifest
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# Helps set up VTK with a headless display
- uses: pyvista/setup-headless-display-action@v2
# Run tests
- uses: neuroinformatics-unit/actions/test@v1
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
use-xvfb: true
Expand All @@ -59,7 +59,7 @@ jobs:
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v1
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2


upload_all:
Expand Down
4 changes: 2 additions & 2 deletions brainglobe_segmentation/regions/IO.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from pathlib import Path

import imio
import numpy as np
from brainglobe_utils.general.pathlib import append_to_pathlib_stem
from brainglobe_utils.image_io import to_tiff
from brainglobe_utils.IO.surfaces import marching_cubes_to_obj
from skimage import measure

Expand Down Expand Up @@ -97,7 +97,7 @@ def save_regions_to_file(
name = label_layer.name

filename = destination_directory / (name + image_extension)
imio.to_tiff(data.astype(np.int16), filename)
to_tiff(data.astype(np.int16), filename)


def export_regions_to_file(image, filename, voxel_size, ignore_empty=True):
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ requires-python = ">=3.9"
dependencies = [
"bg-atlasapi",
"brainglobe-napari-io >=0.3.0",
"brainglobe-utils >=0.2.7",
"imio",
"brainglobe-utils >=0.4.0",
"napari >=0.4.5",
"numpy",
"pandas[hdf5]",
Expand Down Expand Up @@ -114,5 +113,4 @@ deps =
magicgui
commands = pytest -v --color=yes --cov=brainglobe_segmentation --cov-report=xml
"""

0 comments on commit 220ae49

Please sign in to comment.