[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Alec Mihailovs
On Apr 12, 4:03 pm, Alec Mihailovs wrote: > Also, the show command should be replaced with savefig - something > like in the following example, That could be also done without changing the examples on the brian's webpage, by redefining show() as def show(): from matplotlib.pyplot import sav

[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Alec Mihailovs
On Apr 12, 4:32 pm, William Stein wrote: > > You can also just do > > Action -> Restart Worksheet Thank you! Alec -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, vis

[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Alec Mihailovs
By the way, the easy way to install brian package in Sage from the notebook is to execute the following cell, %sh easy_install brian Then save & quit the worksheet and open it again. Alec -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Alec Mihailovs
On Apr 12, 3:30 pm, Alec Mihailovs wrote: > > import brian_no_units > from brian import * Also, the show command should be replaced with savefig - something like in the following example, from matplotlib.pyplot import savefig eqs = ''' dv/dt = (ge+gi-(v+49*mV))/(20*ms) : volt dge/dt = -ge/(5*ms)

[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Alec Mihailovs
On Apr 12, 5:30 am, Uri wrote: > I found another way to solve that problem (which seems more practical > to me). You just have to redefine RealNumber and Integer: > > RealNumber=float > Integer=int You could also disable units - i.e. start brian as import brian_no_units from brian import * Then

[sage-support] Re: problems with sage and brian simulator

2010-04-12 Thread Uri
I found another way to solve that problem (which seems more practical to me). You just have to redefine RealNumber and Integer: RealNumber=float Integer=int to avoid the error. On 7 Abr, 11:45, Uri wrote: > Thanks a lot, it worked!! :) > > On 7 Abr, 11:38, Robert Bradshaw wrote: > > > On Apr

[sage-support] Re: problems with sage and brian simulator

2010-04-07 Thread Uri
Thanks a lot, it worked!! :) On 7 Abr, 11:38, Robert Bradshaw wrote: > On Apr 7, 2010, at 2:10 AM, Uri wrote: > > > > > I'm having some problems trying to use a program called Brian > > Simulator (www.briansimulator.org) through Sage. This program is > > written in Python an can be used as a pyt