Skip to content
Snippets Groups Projects
Commit ac0b8002 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Merge commit 'a5122cfb'

parents 2edfcf15 a5122cfb
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ PYTHON3="/usr/bin/python3" ...@@ -31,7 +31,7 @@ PYTHON3="/usr/bin/python3"
( (
# Old makefile based flow. # Old makefile based flow.
python2 -m compileall -q . python2 -m compileall -q .
if type python3 -c 'import sys' > /dev/null; then python3 -m compileall -q . ; fi if type $PYTHON3 > /dev/null; then python3 -m compileall -q . ; fi
# Traditional make. # Traditional make.
make make
## CMAKE based flow ## CMAKE based flow
...@@ -46,7 +46,7 @@ PYTHON3="/usr/bin/python3" ...@@ -46,7 +46,7 @@ PYTHON3="/usr/bin/python3"
# This is only applicable on linux build. # This is only applicable on linux build.
echo "Python3 support. Removed python2-networkx and install python3" echo "Python3 support. Removed python2-networkx and install python3"
if type $PYTHON3 -c 'import os' > /dev/null; then if type $PYTHON3 > /dev/null; then
sudo apt-get remove -qq python-networkx sudo apt-get remove -qq python-networkx
sudo apt-get install -qq python3-networkx sudo apt-get install -qq python3-networkx
mkdir -p _GSL_BUILD2 && cd _GSL_BUILD2 && \ mkdir -p _GSL_BUILD2 && cd _GSL_BUILD2 && \
......
3.1.1-126-g0d5fb79 3.1.1-126-g0d5fb79
\ No newline at end of file
...@@ -42,7 +42,6 @@ OBJ = \ ...@@ -42,7 +42,6 @@ OBJ = \
DifShell.o \ DifShell.o \
DifBufferBase.o \ DifBufferBase.o \
DifBuffer.o \ DifBuffer.o \
MMpump.o \
Leakage.o \ Leakage.o \
VectorTable.o \ VectorTable.o \
MarkovRateTable.o \ MarkovRateTable.o \
...@@ -54,6 +53,7 @@ OBJ = \ ...@@ -54,6 +53,7 @@ OBJ = \
VClamp.o \ VClamp.o \
# MMpump.o \
# LeakyIaF.o \ # LeakyIaF.o \
# GapJunction.o \ # GapJunction.o \
# Nernst.o \ # Nernst.o \
......
import moose import moose
import pygraphviz as pgv
#import networkx as nx pygraphvizFound_ = True
try:
import pygraphviz as pgv
except Exception as e:
pygraphvizFound_ = False
def autoCoordinates(meshEntry,srcdesConnection): def autoCoordinates(meshEntry,srcdesConnection):
global pygraphvizFound_
positionInfo = {} positionInfo = {}
if not pygraphvizFound_:
print( '[warn] python-pygraphviz could not be found.' )
print( '\tMOOSE Install pygraphviz to use this feature' )
return positionInfo
if meshEntry: if meshEntry:
#G = nx.Graph() #G = nx.Graph()
G = pgv.AGraph() G = pgv.AGraph()
...@@ -67,7 +77,7 @@ def autoCoordinates(meshEntry,srcdesConnection): ...@@ -67,7 +77,7 @@ def autoCoordinates(meshEntry,srcdesConnection):
ann.x = float(valuelist[0]) ann.x = float(valuelist[0])
ann.y = float(valuelist[1]) ann.y = float(valuelist[1])
return(positionInfo) return positionInfo
def find_index(value, key): def find_index(value, key):
""" Value.get(key) to avoid expection which would raise if empty value in dictionary for a given key """ """ Value.get(key) to avoid expection which would raise if empty value in dictionary for a given key """
......
...@@ -33,7 +33,13 @@ except Exception as e: ...@@ -33,7 +33,13 @@ except Exception as e:
print('\tError was %s' % e) print('\tError was %s' % e)
genesisSupport_ = False genesisSupport_ = False
import chemUtil.add_Delete_ChemicalSolver chemUtilSupport_ = True
try:
import chemUtil.add_Delete_ChemicalSolver
except Exception as e:
chemUtilSupport_ = False
print( 'Failed to import utility module chemUtil' )
print( '\tError was %s' % e )
sequence_types = ['vector<double>', sequence_types = ['vector<double>',
'vector<int>', 'vector<int>',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment