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

Merge commit 'f0fd0e53'

parents 3324aa5a f0fd0e53
No related branches found
No related tags found
No related merge requests found
notifications:
email:
recipients:
- dilawar.s.rajput@gmail.com
- upi.bhalla@gmail.com
- hrani@ncbs.res.in
install:
- wget http://download.opensuse.org/repositories/home:moose/xUbuntu_12.04/Release.key
- sudo apt-key add - < Release.key
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/moose/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/moose.list"
- sudo apt-get -y update
- sudo apt-get install python3
- sudo apt-get -y install moose
script:
- # Making sure no python incompatible file is added.
- python -m compileall -q .
- python -c 'import moose'
- python -c 'import moogli'
- # More tests here for gui.
[![Build Status](https://travis-ci.org/BhallaLab/moose-gui.svg?branch=master)](https://travis-ci.org/BhallaLab/moose-gui)
# moose-gui # moose-gui
...@@ -129,11 +129,11 @@ def loadFile(filename, target, solver="gsl", merge=True): ...@@ -129,11 +129,11 @@ def loadFile(filename, target, solver="gsl", merge=True):
if not istext: if not istext:
print 'Cannot handle any binary formats yet' print 'Cannot handle any binary formats yet'
return None return None
parent, child = posixpath.split(target) # parent, child = posixpath.split(target)
p = moose.Neutral(parent) # p = moose.Neutral(parent)
if not merge and p.path != '/': # if not merge and p.path != '/':
for ch in p.children: # for ch in p.children:
moose.delete(ch) # moose.delete(ch)
try: try:
modeltype = mtypes.getType(filename) modeltype = mtypes.getType(filename)
subtype = mtypes.getSubtype(filename, modeltype) subtype = mtypes.getSubtype(filename, modeltype)
......
...@@ -2,8 +2,9 @@ import sys ...@@ -2,8 +2,9 @@ import sys
from PyQt4 import QtGui, QtCore, Qt from PyQt4 import QtGui, QtCore, Qt
from default import * from default import *
from moose import * from moose import *
from moose.genesis import write #from moose.genesis import write
from moose import SBML from moose import SBML
from moose.genesis.writeKkit import mooseWriteKkit
#sys.path.append('plugins') #sys.path.append('plugins')
from mplugin import * from mplugin import *
from kkitUtil import * from kkitUtil import *
...@@ -113,7 +114,7 @@ class KkitPlugin(MoosePlugin): ...@@ -113,7 +114,7 @@ class KkitPlugin(MoosePlugin):
v['y'] = -yprime v['y'] = -yprime
filename = filename filename = filename
writeerror = write(self.modelRoot,str(filename),self.coOrdinates) writeerror = mooseWriteKkit(self.modelRoot,str(filename),self.coOrdinates)
if writeerror == False: if writeerror == False:
QtGui.QMessageBox.information(None,'Could not save the Model','\nCheck the file') QtGui.QMessageBox.information(None,'Could not save the Model','\nCheck the file')
else: else:
......
...@@ -218,7 +218,7 @@ def autoCoordinates(meshEntry,srcdesConnection): ...@@ -218,7 +218,7 @@ def autoCoordinates(meshEntry,srcdesConnection):
else: else:
for items in (items for items in out ): for items in (items for items in out ):
G.add_edge(element(items[0]).path,inn.path) G.add_edge(element(items[0]).path,inn.path)
position = nx.spring_layout(G)
#nx.draw(G,pos=nx.spring_layout(G)) #nx.draw(G,pos=nx.spring_layout(G))
#position = nx.spring_layout(G) #position = nx.spring_layout(G)
#import matplotlib.pyplot as plt #import matplotlib.pyplot as plt
......
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