Re: find which Python libraries are most influential in scientific research

2015-11-13 Thread Laura Creighton
In a message of Sat, 14 Nov 2015 00:38:41 -0500, Terry Reedy writes: >On 11/13/2015 10:58 PM, Ian Kelly wrote: >> On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote: >>> >>> Today's scientists often turn to Python to run analysis, simulation, and >> other sciency tasks. >>> >>> That makes us wonder:

Re: find which Python libraries are most influential in scientific research

2015-11-13 Thread Steven D'Aprano
On Sat, 14 Nov 2015 02:58 pm, Ian Kelly wrote: > FYI, the depsy.org site is completely unusable on my Android phone. On Firefox under Linux, the page comes up blank. If I use the NoScript plugin to allow Javascript from the despy.org site, the page now takes twice as long to load, and still come

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Steven D'Aprano
On Sat, 14 Nov 2015 02:01 pm, Chris Angelico wrote: > On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano > wrote: >> On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote: >> >>> However, this is a reasonable call for the abolition of unary plus... >> >> The only way you'll take unary plus out of Pyth

Re: find which Python libraries are most influential in scientific research

2015-11-13 Thread Terry Reedy
On 11/13/2015 10:58 PM, Ian Kelly wrote: On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote: Today's scientists often turn to Python to run analysis, simulation, and other sciency tasks. That makes us wonder: which Python libraries are most influential in scientific research? Numpy, scipy,

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Chris Angelico
On Sat, Nov 14, 2015 at 2:48 PM, Ian Kelly wrote: >> Yes, unary minus has the same issue - but it's a lot more important >> than unary plus is. In ECMAScript, unary plus means "force this to be >> a number"; what's its purpose in Python? > > I'm not sure "force this to be a number" is really a jus

Re: find which Python libraries are most influential in scientific research

2015-11-13 Thread Ian Kelly
On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote: > > Today's scientists often turn to Python to run analysis, simulation, and other sciency tasks. > > That makes us wonder: which Python libraries are most influential in scientific research? > > We just released a tool (built in Python, of course)

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Chris Angelico
On Sat, Nov 14, 2015 at 2:45 PM, Ian Kelly wrote: >> Yes, unary minus has the same issue - but it's a lot more important >> than unary plus is. In ECMAScript, unary plus means "force this to be >> a number"; what's its purpose in Python? > > It forces a Counter to contain only positive counts? Di

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
On Nov 13, 2015 8:03 PM, "Chris Angelico" wrote: > > On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano wrote: > > On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote: > > > >> However, this is a reasonable call for the abolition of unary plus... > > > > The only way you'll take unary plus out of Py

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
On Nov 13, 2015 8:03 PM, "Chris Angelico" wrote: > > On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano wrote: > > On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote: > > > >> However, this is a reasonable call for the abolition of unary plus... > > > > The only way you'll take unary plus out of Py

Re: Question about math.pi is mutable

2015-11-13 Thread Michael Torrie
On 11/10/2015 03:03 AM, Antoon Pardon wrote: > Op 10-11-15 om 00:29 schreef Ben Finney: >> >> Who is doing what to whom? The user of the library isn't doing anything >> to the library author, so what is it the library author would consent >> to? Instead, you seem to be trying to assert a *power* of

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Chris Angelico
On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano wrote: > On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote: > >> However, this is a reasonable call for the abolition of unary plus... > > The only way you'll take unary plus out of Python is by prying it from my > cold, dead hands. > > > BTW, unar

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Steven D'Aprano
On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote: > However, this is a reasonable call for the abolition of unary plus... The only way you'll take unary plus out of Python is by prying it from my cold, dead hands. BTW, unary minus suffers from the same "problem": x =- y # oops, meant x -= y

Re: Jython standalone

2015-11-13 Thread Steven D'Aprano
On Sat, 14 Nov 2015 12:35 pm, vjp2...@at.biostrategist.dot.dot.com wrote: > I click jython.org standalone jar and it just does a wait cycle. I'm afraid I can't completely understand the problem you are having, since you haven't really described it with sufficient detail. But my *guess* (and this

Re: Question about math.pi is mutable

2015-11-13 Thread Larry Hudson via Python-list
On 11/13/2015 01:19 AM, Denis McMahon wrote: On Fri, 13 Nov 2015 09:04:54 +1100, Steven D'Aprano wrote: On Fri, 13 Nov 2015 07:40 am, Thomas 'PointedEars' Lahn wrote: [crap I expect] And you should consider the irony, and hypocrisy, of somebody who signs his posts "PointedEars" bitching a

Jython standalone

2015-11-13 Thread vjp2 . at
I click jython.org standalone jar and it just does a wait cycle. What does it need to give me a prompt? - = - Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist http://www.panix.com/~vjp2/vasos.htm ---{Nothing her

Re: don't understand matrix-multiplication should be reversed in python?

2015-11-13 Thread Gregory Ewing
Dave Farrance wrote: Yep, he's evidently used to the Matlab/Octave way of defining "vectors" which is somewhat easier for a math-oriented interactive environment. It's just a *bit* more laborious to append columns in numpy. Yes, that's probably the main reason to do things that way. A collecti

Re: What is '@' for

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 05:14 PM, Chris Angelico wrote: > On Sat, Nov 14, 2015 at 10:04 AM, fl wrote: >> I read the following code snippet. A question is here about '@'. >> I don't find the answer online yet. >> >> What function is it here? >> >> >> @pymc.deterministic >> def theta(a=alpha, b=beta): >>

Re: What is '@' for

2015-11-13 Thread Terry Reedy
On 11/13/2015 6:04 PM, fl wrote: I read the following code snippet. A question is here about '@'. I don't find the answer online yet. Start with the index of the fine docs, which includes symbols. https://docs.python.org/3/genindex-Symbols.html '@' is near the end of the page. @pymc.determin

Re: What is '@' for

2015-11-13 Thread Chris Angelico
On Sat, Nov 14, 2015 at 10:04 AM, fl wrote: > I read the following code snippet. A question is here about '@'. > I don't find the answer online yet. > > What function is it here? > > > @pymc.deterministic > def theta(a=alpha, b=beta): > """theta = logit^{-1}(a+b)""" > return pymc.invlogit(

What is '@' for

2015-11-13 Thread fl
Hi, I read the following code snippet. A question is here about '@'. I don't find the answer online yet. What function is it here? BTW, below is for printing out? """theta = logit^{-1}(a+b)""" but I don't see it is printed when the following could have been called. Are you sure it would be

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Chris Angelico
On Sat, Nov 14, 2015 at 6:45 AM, Ian Kelly wrote: > This sets RegisterAX to 2. Specifically, positive 2. If you want to > *add* 2, you probably meant to write: > > RegisterAX += 2 > > This also points out a good reason for using spaces around operators, > as "RegisterAX =+ 2" would have caused

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 01:56 PM, Laura Creighton wrote: > In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes: >> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >>> Apfelkiste:Sources chris$ >> >> Well, I get window and when I do this: >> >> pack [button .b -text Hello -command exit] >

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 03:30 PM, Christian Gollwitzer wrote: > Am 13.11.15 um 20:14 schrieb Tim Daneliuk: >> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >>> Apfelkiste:Sources chris$ >> >> Well, I get window and when I do this: >> >> pack [button .b -text Hello -command exit] >> >> Nothing appears.

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 01:58 PM, Michael Torrie wrote: > On 11/13/2015 12:14 PM, Tim Daneliuk wrote: >> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >>> Apfelkiste:Sources chris$ >> >> Well, I get window and when I do this: >> >> pack [button .b -text Hello -command exit] >> >> Nothing appears. >> >>

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Grant Edwards
On 2015-11-13, kent nyberg wrote: > Though, as many times before, the problem was due to misunderstanding > of how python works. I assumed file.read()[xx:yy] was to be > understood as, in the file, read from index xx to place yy. Nope. First, the 'file.read()' part is evaluated. That return

Re: More tkinter Madness

2015-11-13 Thread Christian Gollwitzer
Am 13.11.15 um 20:14 schrieb Tim Daneliuk: On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: Apfelkiste:Sources chris$ Well, I get window and when I do this: pack [button .b -text Hello -command exit] Nothing appears. No error, nothing? Just to be sure, you haven't closed the empty windo

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread kent nyberg
The main problem was that I forgot to do seek(0). Thanks alot people. Though, as many times before, the problem was due to misunderstanding of how python works. I assumed file.read()[xx:yy] was to be understood as, in the file, read from index xx to place yy. That is, [10:20] was the same a

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Grant Edwards
On 2015-11-13, Ian Kelly wrote: > Either retain the read data between calls, or call seek(0) before > reading it again. It has always saddened me that Python files don't have a rewind() method. On Unix, calling rewind() is the same as calling seek(0), so it's utterly pointless except as an amus

Re: Trying out Kivy

2015-11-13 Thread bayang
Le 13/11/2015 21:10, Cecil Westerhof a écrit : Purge log fired. Analysing... Purge finished! [INFO ] [Logger ] Record log in /home/cecil/.kivy/logs/kivy_15-11-13_28.txt [INFO ] [Kivy] v1.9.0 [INFO ] [Python ] v3.4.1 (default, May 23 2014,

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
On Fri, Nov 13, 2015 at 1:15 PM, kent nyberg wrote: > What bothers me, is the error that says > unpack requires a string argument of 4 bytes. > Im thinking in the line of arguments? Does unpack look at the 4 bytes it has > read, and tell for some > reason say that unpacking needs an argument of 4

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
On Fri, Nov 13, 2015 at 1:15 PM, kent nyberg wrote: > Even with that, it still gets wrong. > I also tried .read()[RegisterAX:RegisterAX+4] When you call read for the second time, are you just reading the same file again without closing or seeking it in the interim? If that's the case, then you wo

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Laura Creighton
I forgot to add. You get this wretched error message if your data is shorter than expected, and you ask struct to read more than you have, as well. most annoying. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread kent nyberg
On Fri, Nov 13, 2015 at 12:36:22PM -0700, Ian Kelly wrote: > On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote: > > def LoadCommandAndReact(place_to_read): > > global RegisterAX > > > > tmp = place_to_read.read()[RegisterAX:calcsize('HH')] > > It looks like you're trying to get a slice

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:20:45 -0500, kent nyberg writes: >Hi there, >Im deeply sorry for yet another question to this list. I have come across a >problem to which google seems not >to eager to supply the anwser. > >The problem is the following. >First I do this: > >def setup_drive():

Re: Trying out Kivy

2015-11-13 Thread Cecil Westerhof
On Friday 13 Nov 2015 20:53 CET, Michael Torrie wrote: > On 11/13/2015 11:30 AM, Cecil Westerhof wrote: >> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: >> >>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote: I tried to install pygame and PIL with pip3, but that did not find anyth

Re: More tkinter Madness

2015-11-13 Thread Michael Torrie
On 11/13/2015 12:14 PM, Tim Daneliuk wrote: > On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > > Well, I get window and when I do this: > > pack [button .b -text Hello -command exit] > > Nothing appears. > > tkinter appears borked > > I have reinstalled once a

Re: More tkinter Madness

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes: >On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > >Well, I get window and when I do this: > >pack [button .b -text Hello -command exit] > >Nothing appears. > >tkinter appears borked > >I have rei

Re: Trying out Kivy

2015-11-13 Thread Michael Torrie
On 11/13/2015 11:30 AM, Cecil Westerhof wrote: > On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: > >> On 11/13/2015 09:33 AM, Cecil Westerhof wrote: >>> I tried to install pygame and PIL with pip3, but that did not find >>> anything. >> >> The replacement for PIL is called Pillow. I'm not

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
As long as I'm replying to this, I see a few more issues to comment on: On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote: > if place_to_read.closed: >print("Drive error. Drive closed.") You probably also want to break or return here. Even better: raise an exception instead of prin

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Ian Kelly
On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote: > def LoadCommandAndReact(place_to_read): > global RegisterAX > > tmp = place_to_read.read()[RegisterAX:calcsize('HH')] It looks like you're trying to get a slice of length 4 here, starting at the value of RegisterAX. What you're actual

Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread kent nyberg
Hi there, Im deeply sorry for yet another question to this list. I have come across a problem to which google seems not to eager to supply the anwser. The problem is the following. First I do this: def setup_drive(): test = pack('>HH', 0b1000, 0b10010001) file = op

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: > Apfelkiste:Sources chris$ Well, I get window and when I do this: pack [button .b -text Hello -command exit] Nothing appears. tkinter appears borked I have reinstalled once already, will try again -- https://mail.python.org/mailman/listin

Re: Trying out Kivy

2015-11-13 Thread Cecil Westerhof
On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: > On 11/13/2015 09:33 AM, Cecil Westerhof wrote: >> I tried to install pygame and PIL with pip3, but that did not find >> anything. > > The replacement for PIL is called Pillow. I'm not sure if it's a > drop-in replacement or not. If it's not

Re: Trying out Kivy

2015-11-13 Thread bayang
Le 13/11/2015 18:23, Terry Reedy a écrit : On 11/13/2015 11:33 AM, Cecil Westerhof wrote: I tried out the ‘standard’ Kivy application: from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self

Re: Trying out Kivy

2015-11-13 Thread Terry Reedy
On 11/13/2015 11:33 AM, Cecil Westerhof wrote: I tried out the ‘standard’ Kivy application: from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World'

Re: Trying out Kivy

2015-11-13 Thread Michael Torrie
On 11/13/2015 09:33 AM, Cecil Westerhof wrote: > I tried to install pygame and PIL with pip3, but that did not find > anything. The replacement for PIL is called Pillow. I'm not sure if it's a drop-in replacement or not. If it's not, then you'd have to modify Kivy to import from Pillow. Pillow

Re: numpy column_stack - why does this work?

2015-11-13 Thread Ian Kelly
On Fri, Nov 13, 2015 at 8:37 AM, PythonDude wrote: > Hi all, > > Just a quick question about this code-piece (it works, I've tested it): > > means, stds = np.column_stack([ > getMuSigma_from_PF(return_vec) > for _ in xrange(n_portfolios) ]) > > > 1) I understand column_stack does this (ass

Trying out Kivy

2015-11-13 Thread Cecil Westerhof
I tried out the ‘standard’ Kivy application: from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World') TestApp().run()

Re: don't understand matrix-multiplication should be reversed in python?

2015-11-13 Thread Dave Farrance
PythonDude wrote: >On Thursday, 12 November 2015 22:57:21 UTC+1, Robert Kern wrote: >> He simply instantiated the two vectors as row-vectors instead of >> column-vectors, >> which he could have easily done, so he had to flip the matrix expression. > >Thank you very much Robert - I just had to

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:04:01 +, Oscar Benjamin writes: >On 13 November 2015 at 08:34, Laura Creighton wrote: >> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >>>I am trying to run some Python code for the last few hours. How can I >>>achieve the effect of "dot

Re:

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:47:12 +0530, Animesh Srivastava writes: >Whenever i install python 3.5.0 compiler >It gives me error 0x07b >Can u please resolve it >-- >https://mail.python.org/mailman/listinfo/python-list Maybe this is your problem http://www.bitdefender.com/support/how-t

numpy column_stack - why does this work?

2015-11-13 Thread PythonDude
Hi all, Just a quick question about this code-piece (it works, I've tested it): means, stds = np.column_stack([ getMuSigma_from_PF(return_vec) for _ in xrange(n_portfolios) ]) 1) I understand column_stack does this (assembles vectors vertically, side-by-side): >>> a = np.array((1,2,3

Re: What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-13 Thread Oscar Benjamin
On 13 November 2015 at 03:08, Xiang Zhang <18518281...@126.com> wrote: > I think the meaning of Py_INCREF a static type object is to prevent it from > being deallocated when it is Py_DECREFed somehow later. Just as you said, it > may be somehow deallocated when using. > > NoddyType is a static stru

Re: Plotting timeseries from a csv file using matplotlib

2015-11-13 Thread Denis McMahon
On Thu, 12 Nov 2015 21:27:58 -0800, Karthik Sharma wrote: > I have some csv data in the following format. .. Does the following idea help? Create a key from the key fields, remove the key fields from the row dic (so now it's a dic of just the data fields), and save that in the plotdata dic

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Oscar Benjamin
On 13 November 2015 at 08:34, Laura Creighton wrote: > In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >>I am trying to run some Python code for the last few hours. How can I achieve >>the effect of "dot divide" from Matlab, in the following code? I am having >>trouble working

Can Canopy Express (Free) allow install a new package (PyBayes) to it?

2015-11-13 Thread fl
I am using Canopy Express (Free) version. I want to install PyBayes package, but I don't see it in Package Manager of Canopy. Can I install PyBayes to Canopy? Now, Canopy is the default Python on my Windows 7 PC. If Canopy does not allow to install PyBayes into it, can I install PyBayes to the

Re:

2015-11-13 Thread Chris Angelico
On Fri, Nov 13, 2015 at 8:17 PM, Animesh Srivastava wrote: > Whenever i install python 3.5.0 compiler > It gives me error 0x07b > Can u please resolve it Is this Windows XP? You have three options: 1) Install Python 3.4 instead 2) Upgrade to a newer Windows 3) Upgrade to a better operating s

Re: What is wrong in this example code?

2015-11-13 Thread Nathan Hilterbrand
On Thu, Nov 12, 2015 at 6:59 PM, Larry Hudson via Python-list < python-list@python.org> wrote: Nothing to do with your original question, just a trivial suggestion which > you are free to ignore. You can shorten this tick() method by using the > divmod() function. It does a division and returns

[no subject]

2015-11-13 Thread Animesh Srivastava
Whenever i install python 3.5.0 compiler It gives me error 0x07b Can u please resolve it -- https://mail.python.org/mailman/listinfo/python-list

Re: What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-13 Thread Xiang Zhang
Thanks for your reply jason. Your reply does give me hints and then I read more code and find maybe you are wrong in some points. I think the meaning of Py_INCREF a static type object is to prevent it from being deallocated when it is Py_DECREFed somehow later. Just as you said, it may be some

Re: Unable to make http request to django server using twisted.web.client.AGENT

2015-11-13 Thread Akshat Tripathi
On Thursday, 5 November 2015 13:06:13 UTC+5:30, Akshat Tripathi wrote: > I have written a basic tcp server factory, server client and a service using > twisted. The tcp server acts as the middleware between a django server and an > another program (let's call it client program). > > What I want

Re: Plotting timeseries from a csv file using matplotlib

2015-11-13 Thread Fabien
On 11/13/2015 06:27 AM, Karthik Sharma wrote: How do I extract all the values in columns Have a look at pandas: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html -- https://mail.python.org/mailman/listinfo/python-list

Running latest 32-bit Python on 64-bit system

2015-11-13 Thread Christian Ullrich
Hello, I have a problem with using the (otherwise nice) Python launcher. How can I get it to run the highest 32-bit Python on my 64-bit system? This is on Windows, but I think it applies to other OSes as well. My application runs (unmodified) with Python 3.[345], but only with the 32-bit ver

Re: Question about math.pi is mutable

2015-11-13 Thread Denis McMahon
On Fri, 13 Nov 2015 09:04:54 +1100, Steven D'Aprano wrote: > On Fri, 13 Nov 2015 07:40 am, Thomas 'PointedEars' Lahn wrote: > > [crap I expect] > And you should consider the irony, and hypocrisy, of somebody who signs > his posts "PointedEars" bitching about supposed "real names". TPEL has been

Re: don't understand matrix-multiplication should be reversed in python?

2015-11-13 Thread PythonDude
On Thursday, 12 November 2015 22:57:21 UTC+1, Robert Kern wrote: > On 2015-11-12 15:57, PythonDude wrote: > > Hi all, > > > > I've come around a webpage with python-tutorial/description for obtaining > > something and I'll solve this: > > > > R = p^T w > > > > where R is a vector and p^T is the t

Re: don't understand matrix-multiplication should be reversed in python?

2015-11-13 Thread PythonDude
On Thursday, 12 November 2015 17:35:39 UTC+1, Ian wrote: > On Thu, Nov 12, 2015 at 8:57 AM, PythonDude wrote: > > Hi all, > > Anyone could please explain or elaborate on exactly this (quote): "Keep in > > mind that Python has a reversed definition of rows and columns"??? > > > > That I don't und

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >I am trying to run some Python code for the last few hours. How can I achieve >the effect of "dot divide" from Matlab, in the following code? I am having >trouble working with list comprehension and numpy arrays and getting the >