Created
July 11, 2018 11:36
-
-
Save chris-allan/e3eb0507358c193ffeae85306c6bc913 to your computer and use it in GitHub Desktop.
Print out important CellProfiler Python module versions
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2018 Glencoe Software, Inc. All rights reserved. | |
# | |
# This program and the accompanying materials | |
# are licensed and made available under the terms and conditions of the BSD | |
# License which accompanies this distribution. The full text of the license | |
# may be found at http://opensource.org/licenses/bsd-license.php | |
# | |
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR | |
# IMPLIED. | |
# | |
""" | |
PyModuleVersions | |
================ | |
**PyModuleVersions** prints out important CellProfiler Python module versions. | |
""" | |
import inspect | |
import sys | |
import MySQLdb | |
import bioformats | |
import centrosome.filter | |
import centrosome.neighmovetrack | |
import docutils | |
import h5py | |
import inflect | |
import javabridge | |
#import joblib | |
import mahotas | |
import matplotlib | |
import numpy | |
import prokaryote | |
import raven | |
import requests | |
import scipy | |
import skimage | |
import sklearn | |
import zmq | |
import cellprofiler | |
import cellprofiler.module | |
import cellprofiler.setting | |
""" | |
v3.0.0 tag... | |
install_requires=[ | |
"centrosome", | |
"docutils", | |
"h5py", | |
"inflect", | |
"javabridge", | |
"joblib", | |
"mahotas", | |
"matplotlib", | |
"MySQL-python", | |
"numpy", | |
"prokaryote==2.3.1", | |
"python-bioformats==1.3.1", | |
"pyzmq==15.3.0", | |
"raven", | |
"requests", | |
"scikit-image", | |
"scikit-learn", | |
"scipy" | |
], | |
""" | |
class PyModuleVersions(cellprofiler.module.Module): | |
category = "File Processing" | |
module_name = "PyModuleVersions" | |
variable_revision_number = 1 | |
def create_settings(self): | |
self.blarg = cellprofiler.setting.Text( | |
'Blarg', 'Blarg', doc='Blarg, blarg, blarg' | |
) | |
def display(self, workspace, figure): | |
pass | |
def run(self, workspace): | |
print 'cellprofiler: %s' % cellprofiler.__version__ | |
print 'centrosome: %s' % '~1.0.8' | |
print 'docutils: %s' % docutils.__version__ | |
print 'h5py: %s' % h5py.__version__ | |
print 'inflect: %s' % inflect.__version__ | |
print 'javabridge: %s' % javabridge.__version__ | |
# print 'joblib: %s' % joblib.__version__ | |
print 'mahotas: %s' % mahotas.__version__ | |
print 'matplotlib: %s '% matplotlib.__version__ | |
print 'MySQLdb (MySQL-python): %s' % MySQLdb.__version__ | |
print 'numpy: %s' % numpy.__version__ | |
print 'prokaryote: %s' % prokaryote.__version__ | |
print 'bioformats (python-bioformats): %s' % bioformats.__version__ | |
print 'zmq (pyzmq): %s' % zmq.__version__ | |
print 'raven: %s' % raven.VERSION | |
print 'requests: %s' % requests.__version__ | |
print 'skimage (scikit-image): %s' % skimage.__version__ | |
print 'sklearn (scikit-learn): %s' % sklearn.__version__ | |
print 'scipy: %s' % scipy.__version__ | |
def settings(self): | |
return [ | |
self.blarg | |
] | |
def volumetric(self): | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment