Skip to content

Commit

Permalink
chore(transform-io): update generated bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 7, 2024
1 parent b6810af commit 53b18ed
Show file tree
Hide file tree
Showing 94 changed files with 279 additions and 277 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const defaultImageTag = '20241030-6c93a1be'
const defaultImageTag = '20241105-f63df61f'
export default defaultImageTag
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def hdf5_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def hdf5_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def hdf5_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def mat_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def mat_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def mat_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def mnc_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def mnc_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def mnc_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def txt_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def txt_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def txt_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def wasm_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def wasm_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def wasm_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
from itkwasm import (
InterfaceTypes,
BinaryFile,
Transform,
TransformList,
)

async def wasm_zstd_read_transform_async(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,7 +33,7 @@ async def wasm_zstd_read_transform_async(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
js_module = await js_package.js_module
web_worker = js_resources.web_worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
)
from itkwasm import (
InterfaceTypes,
Transform,
TransformList,
BinaryFile,
)

async def wasm_zstd_write_transform_async(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
PipelineInput,
Pipeline,
BinaryFile,
Transform,
TransformList,
)

def hdf5_read_transform(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,15 +33,15 @@ def hdf5_read_transform(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
global _pipeline
if _pipeline is None:
_pipeline = Pipeline(file_resources('itkwasm_transform_io_wasi').joinpath(Path('wasm_modules') / Path('hdf5-read-transform.wasi.wasm')))

pipeline_outputs: List[PipelineOutput] = [
PipelineOutput(InterfaceTypes.JsonCompatible),
PipelineOutput(InterfaceTypes.Transform),
PipelineOutput(InterfaceTypes.TransformList),
]

pipeline_inputs: List[PipelineInput] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
PipelineOutput,
PipelineInput,
Pipeline,
Transform,
TransformList,
BinaryFile,
)

def hdf5_write_transform(
transform: Transform,
transform: TransformList,
serialized_transform: str,
float_parameters: bool = False,
use_compression: bool = False,
) -> Tuple[Any]:
"""Write an ITK-Wasm transform file format converted to a transform file format
:param transform: Input transform
:type transform: Transform
:type transform: TransformList
:param serialized_transform: Output transform serialized in the file format.
:type serialized_transform: str
Expand All @@ -50,7 +50,7 @@ def hdf5_write_transform(
]

pipeline_inputs: List[PipelineInput] = [
PipelineInput(InterfaceTypes.Transform, transform),
PipelineInput(InterfaceTypes.TransformList, transform),
]

args: List[str] = ['--memory-io',]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
PipelineInput,
Pipeline,
BinaryFile,
Transform,
TransformList,
)

def mat_read_transform(
serialized_transform: os.PathLike,
float_parameters: bool = False,
) -> Tuple[Any, Transform]:
) -> Tuple[Any, TransformList]:
"""Read an transform file format and convert it to the ITK-Wasm transform file format
:param serialized_transform: Input transform serialized in the file format
Expand All @@ -33,15 +33,15 @@ def mat_read_transform(
:rtype: Any
:return: Output transform
:rtype: Transform
:rtype: TransformList
"""
global _pipeline
if _pipeline is None:
_pipeline = Pipeline(file_resources('itkwasm_transform_io_wasi').joinpath(Path('wasm_modules') / Path('mat-read-transform.wasi.wasm')))

pipeline_outputs: List[PipelineOutput] = [
PipelineOutput(InterfaceTypes.JsonCompatible),
PipelineOutput(InterfaceTypes.Transform),
PipelineOutput(InterfaceTypes.TransformList),
]

pipeline_inputs: List[PipelineInput] = [
Expand Down
Loading

0 comments on commit 53b18ed

Please sign in to comment.