-
Notifications
You must be signed in to change notification settings - Fork 267
PL: Add stub file for top-level __init__.py
#1436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- | ||
# vi: set ft=python sts=4 ts=4 sw=4 et: | ||
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## | ||
# | ||
# See COPYING file distributed along with the NiBabel package for the | ||
# copyright and license terms. | ||
# | ||
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## | ||
|
||
import os | ||
from typing import Any | ||
|
||
# module imports | ||
from nibabel import analyze as ana | ||
from nibabel import ecat, imagestats, mriutils, orientations, streamlines, viewers | ||
from nibabel import nifti1 as ni1 | ||
from nibabel import spm2analyze as spm2 | ||
from nibabel import spm99analyze as spm99 | ||
|
||
# object imports | ||
from nibabel.analyze import AnalyzeHeader, AnalyzeImage | ||
from nibabel.arrayproxy import is_proxy | ||
from nibabel.cifti2 import Cifti2Header, Cifti2Image | ||
from nibabel.fileholders import FileHolder, FileHolderError | ||
from nibabel.freesurfer import MGHImage | ||
from nibabel.funcs import as_closest_canonical, concat_images, four_to_three, squeeze_image | ||
from nibabel.gifti import GiftiImage | ||
from nibabel.imageclasses import all_image_classes | ||
from nibabel.info import long_description as __doc__ | ||
from nibabel.loadsave import load, save | ||
from nibabel.minc1 import Minc1Image | ||
from nibabel.minc2 import Minc2Image | ||
from nibabel.nifti1 import Nifti1Header, Nifti1Image, Nifti1Pair | ||
from nibabel.nifti2 import Nifti2Header, Nifti2Image, Nifti2Pair | ||
from nibabel.orientations import ( | ||
OrientationError, | ||
aff2axcodes, | ||
apply_orientation, | ||
flip_axis, | ||
io_orientation, | ||
) | ||
from nibabel.pkg_info import __version__ | ||
from nibabel.pkg_info import get_pkg_info as _get_pkg_info | ||
from nibabel.spm2analyze import Spm2AnalyzeHeader, Spm2AnalyzeImage | ||
from nibabel.spm99analyze import Spm99AnalyzeHeader, Spm99AnalyzeImage | ||
|
||
def get_info() -> dict[str, str]: ... | ||
def test( | ||
label: Any = None, | ||
verbose: int = 1, | ||
extra_argv: list[Any] | None = None, | ||
doctests: bool = False, | ||
coverage: bool = False, | ||
raise_warnings: Any = None, | ||
timer: Any = False, | ||
) -> int: ... | ||
def bench(label: Any = None, verbose: int = 1, extra_argv: list[Any] | None = None) -> int: ... | ||
|
||
__all__ = [ | ||
'AnalyzeHeader', | ||
'AnalyzeImage', | ||
'Cifti2Header', | ||
'Cifti2Image', | ||
'FileHolder', | ||
'FileHolderError', | ||
'GiftiImage', | ||
'MGHImage', | ||
'Minc1Image', | ||
'Minc2Image', | ||
'Nifti1Header', | ||
'Nifti1Image', | ||
'Nifti1Pair', | ||
'Nifti2Header', | ||
'Nifti2Image', | ||
'Nifti2Pair', | ||
'OrientationError', | ||
'Spm2AnalyzeHeader', | ||
'Spm2AnalyzeImage', | ||
'Spm99AnalyzeHeader', | ||
'Spm99AnalyzeImage', | ||
'__doc__', | ||
'__version__', | ||
'_get_pkg_info', | ||
'aff2axcodes', | ||
'all_image_classes', | ||
'ana', | ||
'apply_orientation', | ||
'as_closest_canonical', | ||
'bench', | ||
'concat_images', | ||
'ecat', | ||
'flip_axis', | ||
'four_to_three', | ||
'get_info', | ||
'imagestats', | ||
'io_orientation', | ||
'is_proxy', | ||
'load', | ||
'mriutils', | ||
'ni1', | ||
'orientations', | ||
'os', | ||
'save', | ||
'spm2', | ||
'spm99', | ||
'squeeze_image', | ||
'streamlines', | ||
'test', | ||
'viewers', | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.