Skip to content

Commit

Permalink
build: python bindgen updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Oct 4, 2023
1 parent aadf753 commit eec412b
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')

Expand Down Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit eec412b

Please sign in to comment.