Skip to content

Commit

Permalink
bumps version of pytools, uses is_16bit func from pytools
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmac committed May 31, 2024
1 parent 96ed241 commit baffbd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions em_workflows/dm_conversion/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional

from prefect import flow, task, unmapped, allow_failure
from pytools.meta import is_int16
from pytools.meta import is_int16, is_16bit
from pytools.convert import file_to_uint8

from em_workflows.utils import utils
Expand Down Expand Up @@ -66,7 +66,7 @@ def convert_if_int16_tiff(file_path: FilePath) -> None:
"""
if not (
file_path.fp_in.suffix.strip(".").lower() in TIFS_EXT
and is_int16(file_path.fp_in)
and is_16bit(file_path.fp_in)
):
return
tif_8_bit = file_path.gen_output_fp(out_fname="as_8_bit.tif")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ prefect==2.19.1
prefect[dask]
dask-jobqueue
natsort
pytools@https://github.com/niaid/tomojs-pytools/releases/download/v3.1.1/pytools-3.1.1-py3-none-any.whl
pytools@https://github.com/niaid/tomojs-pytools/releases/download/v3.2.0/pytools-3.2.0-py3-none-any.whl

0 comments on commit baffbd3

Please sign in to comment.