diff --git a/packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py b/packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py index 13376d8cd..fab317304 100644 --- a/packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py +++ b/packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/compare-images/python/itkwasm-compare-images-wasi/itkwasm_compare_images_wasi/vector_magnitude.py b/packages/compare-images/python/itkwasm-compare-images-wasi/itkwasm_compare_images_wasi/vector_magnitude.py index 6fff71007..f5cd780fc 100644 --- a/packages/compare-images/python/itkwasm-compare-images-wasi/itkwasm_compare_images_wasi/vector_magnitude.py +++ b/packages/compare-images/python/itkwasm-compare-images-wasi/itkwasm_compare_images_wasi/vector_magnitude.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -45,8 +43,11 @@ def vector_magnitude( # Inputs args.append('0') # Outputs - args.append('0') + magnitude_image_name = '0' + args.append(magnitude_image_name) + # Options + input_count = len(pipeline_inputs) outputs = _pipeline.run(args, pipeline_outputs, pipeline_inputs) diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/compress_stringify_async.py b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/compress_stringify_async.py index 1fdcd4173..6b8927211 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/compress_stringify_async.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/compress_stringify_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/parse_string_decompress_async.py b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/parse_string_decompress_async.py index 7327fce76..e427ac6e7 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/parse_string_decompress_async.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/parse_string_decompress_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/compress_stringify.py b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/compress_stringify.py index 244a284ce..1d4017033 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/compress_stringify.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/compress_stringify.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -57,8 +55,11 @@ def compress_stringify( # Inputs args.append('0') # Outputs - args.append('0') + output_name = '0' + args.append(output_name) + # Options + input_count = len(pipeline_inputs) if stringify: args.append('--stringify') diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/parse_string_decompress.py b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/parse_string_decompress.py index 1183066dc..16aea54de 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/parse_string_decompress.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/parse_string_decompress.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -49,8 +47,11 @@ def parse_string_decompress( # Inputs args.append('0') # Outputs - args.append('0') + output_name = '0' + args.append(output_name) + # Options + input_count = len(pipeline_inputs) if parse_string: args.append('--parse-string') diff --git a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/read_dicom_encapsulated_pdf_async.py b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/read_dicom_encapsulated_pdf_async.py index 37b5813d1..d81fffe0d 100644 --- a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/read_dicom_encapsulated_pdf_async.py +++ b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/read_dicom_encapsulated_pdf_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_html_async.py b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_html_async.py index c54f99d1f..319bccd90 100644 --- a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_html_async.py +++ b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_html_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_text_async.py b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_text_async.py index f511d2445..7f366fde4 100644 --- a/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_text_async.py +++ b/packages/dicom/python/itkwasm-dicom-emscripten/itkwasm_dicom_emscripten/structured_report_to_text_async.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path import os from typing import Dict, Tuple, Optional, List, Any diff --git a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/read_dicom_encapsulated_pdf.py b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/read_dicom_encapsulated_pdf.py index 30b4e1955..3ced102a3 100644 --- a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/read_dicom_encapsulated_pdf.py +++ b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/read_dicom_encapsulated_pdf.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -108,8 +106,11 @@ def read_dicom_encapsulated_pdf( raise FileNotFoundError("dicom_file does not exist") args.append(str(PurePosixPath(dicom_file))) # Outputs - args.append('0') + pdf_binary_output_name = '0' + args.append(pdf_binary_output_name) + # Options + input_count = len(pipeline_inputs) if read_file_only: args.append('--read-file-only') diff --git a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_html.py b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_html.py index 6cf79e0d9..0852d164b 100644 --- a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_html.py +++ b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_html.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -209,8 +207,11 @@ def structured_report_to_html( raise FileNotFoundError("dicom_file does not exist") args.append(str(PurePosixPath(dicom_file))) # Outputs - args.append('0') + output_text_name = '0' + args.append(output_text_name) + # Options + input_count = len(pipeline_inputs) if read_file_only: args.append('--read-file-only') @@ -283,10 +284,10 @@ def structured_report_to_html( args.append('--add-document-type') if css_reference is not None: - input_count_string = str(len(pipeline_inputs)) pipeline_inputs.append(PipelineInput(InterfaceTypes.TextStream, TextStream(css_reference))) args.append('--css-reference') - args.append(input_count_string) + args.append(str(input_count)) + input_count += 1 if css_file is not None: input_file = str(PurePosixPath(css_file)) diff --git a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_text.py b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_text.py index 678707b2b..aa595c8b9 100644 --- a/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_text.py +++ b/packages/dicom/python/itkwasm-dicom-wasi/itkwasm_dicom_wasi/structured_report_to_text.py @@ -1,7 +1,5 @@ # Generated file. To retain edits, remove this comment. -# Generated file. Do not edit. - from pathlib import Path, PurePosixPath import os from typing import Dict, Tuple, Optional, List, Any @@ -116,8 +114,11 @@ def structured_report_to_text( raise FileNotFoundError("dicom_file does not exist") args.append(str(PurePosixPath(dicom_file))) # Outputs - args.append('0') + output_text_name = '0' + args.append(output_text_name) + # Options + input_count = len(pipeline_inputs) if unknown_relationship: args.append('--unknown-relationship')