Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evan Edmond
fslpy
Commits
d6b24a75
Commit
d6b24a75
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Doc fix and additional check in axisBounds
parent
5d431a9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/transform.py
+5
-4
5 additions, 4 deletions
fsl/utils/transform.py
with
5 additions
and
4 deletions
fsl/utils/transform.py
+
5
−
4
View file @
d6b24a75
...
...
@@ -310,7 +310,7 @@ def axisBounds(shape,
:arg axes: The world coordinate system axis bounds to calculate.
:arg origin: Either ``
'
centre
'
`` (the default) or ``
'
or
igin
'
``.
:arg origin: Either ``
'
centre
'
`` (the default) or ``
'
c
or
ner
'
``.
:arg boundary: Either ``
'
high
'
`` (the default), ``
'
low
'
``,
''
`both
'
``,
or ``None``.
...
...
@@ -318,9 +318,8 @@ def axisBounds(shape,
:arg offset: Amount by which the boundary voxel coordinates should be
offset. Defaults to ``1e-4``.
:returns: A list of tuples, one for each axis specified in the
``axes`` argument. Each tuple contains the ``(lo, hi)``
bounds of the corresponding world coordinate system axis.
:returns: A tuple containing the ``(low, high)`` bounds for each
requested world coordinate system axis.
"""
origin
=
origin
.
lower
()
...
...
@@ -331,6 +330,8 @@ def axisBounds(shape,
if
origin
not
in
(
'
centre
'
,
'
corner
'
):
raise
ValueError
(
'
Invalid origin value: {}
'
.
format
(
origin
))
if
boundary
not
in
(
'
low
'
,
'
high
'
,
'
both
'
,
None
):
raise
ValueError
(
'
Invalid boundary value: {}
'
.
format
(
boundary
))
scalar
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment