|
1 | 1 | # Python-bioformats is distributed under the GNU General Public
|
2 | 2 | # License, but this file is licensed under the more permissive BSD
|
3 | 3 | # license. See the accompanying file LICENSE for details.
|
4 |
| -# |
| 4 | +# |
5 | 5 | # Copyright (c) 2009-2014 Broad Institute
|
6 | 6 | # All rights reserved.
|
7 | 7 |
|
8 | 8 | '''Bioformats package - wrapper for loci.bioformats java code
|
9 | 9 |
|
10 | 10 | '''
|
11 | 11 |
|
| 12 | +from __future__ import absolute_import, unicode_literals |
| 13 | + |
12 | 14 | try:
|
13 | 15 | from _version import __version__
|
14 | 16 | except ImportError:
|
|
30 | 32 | to the Java virtual machine's class path."""
|
31 | 33 |
|
32 | 34 | # See http://www.loci.wisc.edu/software/bio-formats
|
33 |
| -READABLE_FORMATS = ('al3d', 'am', 'amiramesh', 'apl', 'arf', 'avi', 'bmp', |
34 |
| - 'c01', 'cfg', 'cxd', 'dat', 'dcm', 'dicom', 'dm3', 'dv', |
35 |
| - 'eps', 'epsi', 'fits', 'flex', 'fli', 'gel', 'gif', 'grey', |
36 |
| - 'hdr', 'html', 'hx', 'ics', 'ids', 'img', 'ims', 'ipl', |
37 |
| - 'ipm', 'ipw', 'jp2', 'jpeg', 'jpg', 'l2d', 'labels', 'lei', |
38 |
| - 'lif', 'liff', 'lim', 'lsm', 'mdb', 'mnc', 'mng', 'mov', |
39 |
| - 'mrc', 'mrw', 'mtb', 'naf', 'nd', 'nd2', 'nef', 'nhdr', |
40 |
| - 'nrrd', 'obsep', 'oib', 'oif', 'ome', 'ome.tiff', 'pcx', |
41 |
| - 'pgm', 'pic', 'pict', 'png', 'ps', 'psd', 'r3d', 'raw', |
42 |
| - 'scn', 'sdt', 'seq', 'sld', 'stk', 'svs', 'tif', 'tiff', |
| 35 | +READABLE_FORMATS = ('al3d', 'am', 'amiramesh', 'apl', 'arf', 'avi', 'bmp', |
| 36 | + 'c01', 'cfg', 'cxd', 'dat', 'dcm', 'dicom', 'dm3', 'dv', |
| 37 | + 'eps', 'epsi', 'fits', 'flex', 'fli', 'gel', 'gif', 'grey', |
| 38 | + 'hdr', 'html', 'hx', 'ics', 'ids', 'img', 'ims', 'ipl', |
| 39 | + 'ipm', 'ipw', 'jp2', 'jpeg', 'jpg', 'l2d', 'labels', 'lei', |
| 40 | + 'lif', 'liff', 'lim', 'lsm', 'mdb', 'mnc', 'mng', 'mov', |
| 41 | + 'mrc', 'mrw', 'mtb', 'naf', 'nd', 'nd2', 'nef', 'nhdr', |
| 42 | + 'nrrd', 'obsep', 'oib', 'oif', 'ome', 'ome.tiff', 'pcx', |
| 43 | + 'pgm', 'pic', 'pict', 'png', 'ps', 'psd', 'r3d', 'raw', |
| 44 | + 'scn', 'sdt', 'seq', 'sld', 'stk', 'svs', 'tif', 'tiff', |
43 | 45 | 'tnb', 'txt', 'vws', 'xdce', 'xml', 'xv', 'xys', 'zvi')
|
44 |
| -WRITABLE_FORMATS = ('avi', 'eps', 'epsi', 'ics', 'ids', 'jp2', 'jpeg', 'jpg', |
| 46 | +WRITABLE_FORMATS = ('avi', 'eps', 'epsi', 'ics', 'ids', 'jp2', 'jpeg', 'jpg', |
45 | 47 | 'mov', 'ome', 'ome.tiff', 'png', 'ps', 'tif', 'tiff')
|
46 | 48 |
|
47 | 49 | OMETiffWriter = _formatwriter.make_ome_tiff_writer_class()
|
|
51 | 53 |
|
52 | 54 | from .metadatatools import createOMEXMLMetadata as create_ome_xml_metadata
|
53 | 55 | from .metadatatools import wrap_imetadata_object
|
54 |
| -import metadatatools as _metadatatools |
| 56 | +from . import metadatatools as _metadatatools |
55 | 57 | PixelType = _metadatatools.make_pixel_type_class()
|
56 | 58 | get_metadata_options = _metadatatools.get_metadata_options
|
57 | 59 |
|
@@ -101,6 +103,6 @@ def init_logger():
|
101 | 103 | if __name__ == "__main__":
|
102 | 104 | # Handy-dandy PyShell for exploring BioFormats / Rhino / ImageJ
|
103 | 105 | import wx.py.PyCrust
|
104 |
| - |
| 106 | + |
105 | 107 | wx.py.PyCrust.main()
|
106 | 108 | J.kill_vm()
|
0 commit comments