Skip to content

Commit 7a1833c

Browse files
committed
Merge branch 'main' of https://github.com/styx-api/niwrap
2 parents 1062390 + 67eeca0 commit 7a1833c

4 files changed

Lines changed: 23 additions & 25 deletions

File tree

src/niwrap/ants/2.5.3/PrintHeader/boutiques.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "PrintHeader",
33
"command-line": "PrintHeader [IMAGE] [WHAT_INFORMATION]",
44
"author": "ANTs Developers",
5-
"description": "A utility to print header information from an image file.",
5+
"description": "Prints header information from a medical image file. When called with only an image, prints a full header dump including dimensions, bounding box, origin, spacing, intensity range and mean, canonical orientation code, direction cosine matrix, and all image metadata. When called with a specific information code, prints only that property.",
66
"url": "https://github.com/ANTsX/ANTs",
77
"schema-version": "0.5+styx",
88
"inputs": [
@@ -12,7 +12,7 @@
1212
"value-key": "[IMAGE]",
1313
"type": "File",
1414
"optional": false,
15-
"description": "The image file to extract header information from. Supported extension: .ext."
15+
"description": "Input image file (any format supported by ITK, e.g. NIfTI, NRRD, MetaImage). Supports 1D through 5D images."
1616
},
1717
{
1818
"id": "what_information",
@@ -28,15 +28,12 @@
2828
3,
2929
4
3030
],
31-
"description": "Specify the type of information to print: 0 for origin, 1 for spacing, 2 for size, 3 for index, 4 for direction."
31+
"description": "Specify which header field to print: 0 = origin, 1 = spacing, 2 = size, 3 = index, 4 = direction. Values are printed as 'x'-delimited strings. If omitted, prints a full header dump."
3232
}
3333
],
34-
"output-files": [
35-
{
36-
"id": "output",
37-
"name": "Output",
38-
"description": "The printed header information from the specified image.",
39-
"path-template": "header_info.txt"
40-
}
41-
]
42-
}
34+
"stdout-output": {
35+
"id": "output",
36+
"name": "Output",
37+
"description": "The requested header information. When a specific code is given, values are printed as 'x'-delimited strings (e.g. '1.0x1.0x1.0' for spacing). When no code is given, prints a formatted multi-line report of all header fields and metadata."
38+
}
39+
}

src/niwrap/ants/2.5.3/antsApplyTransforms/boutiques.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,14 @@
354354
"id": "transform",
355355
"name": "Transform",
356356
"value-key": "[TRANSFORM]",
357-
"command-line-flag": "--transform",
358357
"optional": true,
359358
"list": true,
360359
"description": "Several transform options are supported including all those defined in the ITK library in addition to a deformation field transform. The ordering of the transformations follows the ordering specified on the command line. An identity transform is pushed onto the transformation stack. Each new transform encountered on the command line is also pushed onto the transformation stack. Then, to warp the input object, each point comprising the input object is warped first according to the last transform pushed onto the stack followed by the second to last transform, etc. until the last transform encountered which is the identity transform. Also, it should be noted that the inverse transform can be accommodated with the usual caveat that such an inverse must be defined by the specified transform class.",
361360
"type": [
362361
{
363362
"id": "transformFileName",
364363
"name": "Transform file name",
365-
"command-line": "[TRANSFORM]",
364+
"command-line": "--transform [TRANSFORM]",
366365
"description": "Transform file name.",
367366
"inputs": [
368367
{

src/niwrap/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "niwrap",
3-
"version": "0.8.10",
3+
"version": "0.8.11",
44
"license": "MIT",
55
"packages": [
66
"afni",

tooling/src/wrap/apps/test/test.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ def total_tests(self) -> int:
174174

175175
@property
176176
def success_rate(self) -> float:
177-
"""Percentage of successful tests."""
178-
if self.total_tests == 0:
177+
"""Percentage of successful tests (excluding skipped)."""
178+
non_skipped = self.ok_count + self.error_count
179+
if non_skipped == 0:
179180
return 0.0
180-
return (self.ok_count / self.total_tests) * 100
181+
return (self.ok_count / non_skipped) * 100
181182

182183

183184
@dataclass
@@ -238,16 +239,17 @@ def print_summary(self) -> None:
238239
return
239240

240241
print(f"Applications tested: {self.total_applications}")
241-
print(f" PASS All tests passed: {self.applications_all_passed}")
242-
print(f" FAIL With failures: {self.applications_with_errors}")
242+
print(f" Passed: {self.applications_all_passed}")
243+
print(f" Failed: {self.applications_with_errors}")
243244

244245
print(f"\nTotal tests run: {self.total_tests_run}")
245-
print(f" PASS Passed: {self.total_passed}")
246-
print(f" FAIL Failed: {self.total_failed}")
247-
print(f" SKIP Skipped: {self.total_skipped}")
246+
print(f" Passed: {self.total_passed}")
247+
print(f" Failed: {self.total_failed}")
248+
print(f" Skipped: {self.total_skipped}")
248249

249-
if self.total_tests_run > 0:
250-
success_rate = (self.total_passed / self.total_tests_run) * 100
250+
non_skipped = self.total_passed + self.total_failed
251+
if non_skipped > 0:
252+
success_rate = (self.total_passed / non_skipped) * 100
251253
print(f"\nOverall success rate: {success_rate:.1f}%")
252254

253255
if self.applications_with_errors > 0:

0 commit comments

Comments
 (0)