File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010__email__ = "dilawars@ncbs.res.in"
1111__status__ = "Development"
1212
13- from FindSim import findSim
14- from FindSim import runAllParallel
1513
1614def run ():
15+ from FindSim import findSim
1716 findSim .main ()
1817
1918def run_parallel ():
19+ from FindSim import runAllParallel
2020 runAllParallel .main ()
2121
2222if __name__ == '__main__' :
Original file line number Diff line number Diff line change 11numpy
22matplotlib
33networkx
4+ pymoose
5+ mpld3
6+ scipy
Original file line number Diff line number Diff line change 3535directory, computes their scores, and prints out basic stats of the scores.
3636It can do this in parallel using Python's multiprocessing library.
3737'''
38+ from __future__ import print_function , division
3839
39- from __future__ import print_function , division , absolute_import
4040import numpy
4141import argparse
4242import os
4545import time
4646from multiprocessing import Pool
4747
48- # Python's pain (import and scripts). See https://stackoverflow.com/a/49480246/1805129
48+ # Python 2/3 pain (import and scripts). See https://stackoverflow.com/a/49480246/1805129
4949# This 'hack' is here to make sure that `python runAllParallel.py` also works
5050# and described in old documents.
51- if __package__ is None or __package__ == '' :
52- import findSim
51+ if sys .version_info .major > 2 :
52+ if __package__ is None or __package__ == '' :
53+ import findSim
54+ else :
55+ from FindSim import findSim
5356else :
54- from FindSim import findSim
57+ import findSim
5558
5659resultCount = 0
5760def reportReturn ( result ):
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4+ set -x
45
56# virtualenv does not require --user
67PYTHON=$( which python)
@@ -14,7 +15,7 @@ if [ "$PYTHON_VERSION" -eq "27" ]; then
1415else
1516 # $PYTHON -m pip uninstall matplotlib -y || echo "Failed to remove matplotlib"
1617 $PYTHON -m pip install matplotlib --upgrade
17- $PYTHON -m pip install --upgrade
18+ $PYTHON -m pip install scipy --upgrade
1819fi
1920
2021# travis.yml should install FindSim
You can’t perform that action at this time.
0 commit comments