Skip to content

Commit d26c99f

Browse files
author
Lee Kamentsky
committed
Merge branch 'master' of github.com:CellProfiler/python-bioformats
2 parents 244ae33 + cac3116 commit d26c99f

21 files changed

Lines changed: 537 additions & 149 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/docs/_build
44
/python_bioformats.egg-info
55
/dist
6+
/bioformats/_version.py

COPYING

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
recursive-include bioformats/tests *.py
2+
recursive-include bioformats/tests *.tif
3+
recursive-include bioformats/tests *.xml

README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ GitHub repository: https://github.com/CellProfiler/python-bioformats
1515

1616
Report bugs here: https://github.com/CellProfiler/python-bioformats/issues
1717

18-
python-bioformats is licensed under the BSD license. See the
19-
accompanying file LICENSE for details.
18+
python-bioformats is licensed under the GNU General Public License
19+
(GPL). Many files are licensed under the more permissive BSD license.
20+
See the accompanying files COPYING and LICENSE for details.
2021

21-
Copyright (c) 2003-2009 Massachusetts Institute of Technology
22-
Copyright (c) 2009-2013 Broad Institute
23-
All rights reserved.
22+
Copyright (c) 2009-2014 Broad Institute. All rights reserved.

bioformats/__init__.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
1-
'''Bioformats package - wrapper for loci.bioformats java code
2-
3-
CellProfiler is distributed under the GNU General Public License,
4-
but this file is licensed under the more permissive BSD license.
5-
See the accompanying file LICENSE for details.
6-
7-
Copyright (c) 2003-2009 Massachusetts Institute of Technology
8-
Copyright (c) 2009-2013 Broad Institute
9-
All rights reserved.
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
4+
#
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
107

11-
Please see the AUTHORS file for credits.
8+
'''Bioformats package - wrapper for loci.bioformats java code
129
13-
Website: http://www.cellprofiler.org
1410
'''
15-
__version__ = "$Revision$"
11+
12+
try:
13+
from _version import __version__
14+
except ImportError:
15+
# We're running in a tree that doesn't have a _version.py, so we don't know what our version is.
16+
__version__ = "0.0.0"
1617

1718
import os.path
1819
import javabridge
1920
from . import formatreader as _formatreader
2021
from . import formatwriter as _formatwriter
2122

2223
_jars_dir = os.path.join(os.path.dirname(__file__), 'jars')
24+
2325
JARS = javabridge.JARS + [os.path.realpath(os.path.join(_jars_dir, name + '.jar'))
2426
for name in ['loci_tools']]
27+
"""List of directories, jar files, and zip files that should be added
28+
to the Java virtual machine's class path."""
2529

2630
# See http://www.loci.wisc.edu/software/bio-formats
2731
READABLE_FORMATS = ('al3d', 'am', 'amiramesh', 'apl', 'arf', 'avi', 'bmp',

bioformats/formatreader.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
4+
#
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
7+
18
'''formatreader.py - mechanism to wrap a bioformats ReaderWrapper and ImageReader
29
310
Example:
@@ -13,17 +20,6 @@
1320
my_red_image, my_green_image, my_blue_image = \
1421
[cs.open_bytes(cs.getIndex(0,i,0)) for i in range(3)]
1522
16-
CellProfiler is distributed under the GNU General Public License,
17-
but this file is licensed under the more permissive BSD license.
18-
See the accompanying file LICENSE for details.
19-
20-
Copyright (c) 2003-2009 Massachusetts Institute of Technology
21-
Copyright (c) 2009-2014 Broad Institute
22-
All rights reserved.
23-
24-
Please see the AUTHORS file for credits.
25-
26-
Website: http://www.cellprofiler.org'
2723
'''
2824

2925
__version__ = "$Revision$"

bioformats/formatwriter.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
4+
#
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
7+
18
'''formatwriter.py - mechanism to wrap a bioformats WriterWrapper and ImageWriter
29
310
The following file formats can be written using Bio-Formats:
@@ -21,17 +28,6 @@
2128
and is especially useful for formats that do not support multiple images per
2229
file.
2330
24-
CellProfiler is distributed under the GNU General Public License,
25-
but this file is licensed under the more permissive BSD license.
26-
See the accompanying file LICENSE for details.
27-
28-
Copyright (c) 2003-2009 Massachusetts Institute of Technology
29-
Copyright (c) 2009-2014 Broad Institute
30-
All rights reserved.
31-
32-
Please see the AUTHORS file for credits.
33-
34-
Website: http://www.cellprofiler.org
3531
'''
3632

3733
__version__ = "$Revision$"

bioformats/log4j.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
4+
#
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
7+
18
import unittest
29
import javabridge
310

bioformats/metadatatools.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
''' metadatatools.py - mechanism to wrap some bioformats metadata classes
2-
3-
CellProfiler is distributed under the GNU General Public License,
4-
but this file is licensed under the more permissive BSD license.
5-
See the accompanying file LICENSE for details.
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
4+
#
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
67

7-
Copyright (c) 2003-2009 Massachusetts Institute of Technology
8-
Copyright (c) 2009-2014 Broad Institute
9-
All rights reserved.
10-
11-
Please see the AUTHORS file for credits.
8+
''' metadatatools.py - mechanism to wrap some bioformats metadata classes
129
13-
Website: http://www.cellprofiler.org
1410
'''
1511

1612
__version__ = "$Revision$"

bioformats/noseplugin.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# CellProfiler is distributed under the GNU General Public License.
2-
# See the accompanying file LICENSE for details.
1+
# Python-bioformats is distributed under the GNU General Public
2+
# License, but this file is licensed under the more permissive BSD
3+
# license. See the accompanying file LICENSE for details.
34
#
4-
# Copyright (c) 2003-2009 Massachusetts Institute of Technology
5-
# Copyright (c) 2009-2013 Broad Institute
6-
#
7-
# Please see the AUTHORS file for credits.
8-
#
9-
# Website: http://www.cellprofiler.org
5+
# Copyright (c) 2009-2014 Broad Institute
6+
# All rights reserved.
107

118
import logging
129
from nose.plugins import Plugin

0 commit comments

Comments
 (0)