-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX(register): bug with channels option + FEAT(io/reslice): support s…
…treamlines (only TRK for now)
- Loading branch information
Showing
12 changed files
with
700 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,10 @@ | ||
from . import loadsave | ||
from . import mapping | ||
from . import readers | ||
from . import writers | ||
|
||
from .mapping import MappedStreamlines | ||
from .loadsave import map, load, loadf, save, savef | ||
|
||
# Import implementations | ||
from .trk import TrkStreamlines |
This file contains 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,35 @@ | ||
"""Specialization for volumes.""" | ||
from functools import wraps | ||
from .readers import reader_classes as streamline_reader_classes | ||
from .writers import writer_classes as streamline_writer_classes | ||
from .. import loadsave | ||
|
||
|
||
@wraps(loadsave.map) | ||
def map(*args, reader_classes=None, **kwargs): | ||
reader_classes = reader_classes or streamline_reader_classes | ||
return loadsave.map(*args, reader_classes=reader_classes, **kwargs) | ||
|
||
|
||
@wraps(loadsave.load) | ||
def load(*args, reader_classes=None, **kwargs): | ||
reader_classes = reader_classes or streamline_reader_classes | ||
return loadsave.load(*args, reader_classes=reader_classes, **kwargs) | ||
|
||
|
||
@wraps(loadsave.loadf) | ||
def loadf(*args, reader_classes=None, **kwargs): | ||
reader_classes = reader_classes or streamline_reader_classes | ||
return loadsave.loadf(*args, reader_classes=reader_classes, **kwargs) | ||
|
||
|
||
@wraps(loadsave.save) | ||
def save(*args, writer_classes=None, **kwargs): | ||
writer_classes = writer_classes or streamline_writer_classes | ||
return loadsave.save(*args, writer_classes=writer_classes, **kwargs) | ||
|
||
|
||
@wraps(loadsave.savef) | ||
def savef(*args, writer_classes=None, **kwargs): | ||
writer_classes = writer_classes or streamline_writer_classes | ||
return loadsave.savef(*args, writer_classes=writer_classes, **kwargs) |
Oops, something went wrong.