Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai committed Nov 12, 2024
1 parent 5958fb0 commit 956e22b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion linc_convert/utils/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

# externals
import nibabel as nib

import numcodecs
import numcodecs.abc
import numpy as np
Expand Down
13 changes: 8 additions & 5 deletions scripts/oct_mat_to_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from contextlib import contextmanager
from functools import wraps
from itertools import product
from typing import Optional, List
from typing import List, Optional
from warnings import warn

import cyclopts
Expand All @@ -29,10 +29,14 @@
import numpy as np
import zarr
from scipy.io import loadmat

from utils import (
ceildiv, make_compressor, convert_unit, to_ome_unit, to_nifti_unit,
orientation_to_affine, center_affine
ceildiv,
center_affine,
convert_unit,
make_compressor,
orientation_to_affine,
to_nifti_unit,
to_ome_unit,
)

app = cyclopts.App(help_format="markdown")
Expand Down Expand Up @@ -104,7 +108,6 @@ def convert(
center
Set RAS[0, 0, 0] at FOV center
"""

if isinstance(compressor_opt, str):
compressor_opt = ast.literal_eval(compressor_opt)

Expand Down
1 change: 1 addition & 0 deletions scripts/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import math

import numcodecs
import numpy as np

Expand Down

0 comments on commit 956e22b

Please sign in to comment.